We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe22c81 commit e9056a3Copy full SHA for e9056a3
client/main.ts
@@ -74,7 +74,8 @@ async function initGreeter(): Promise<void> {
74
// Add reboot keybind to reboot on ctrl+alt+del
75
// only when the lock screen is not shown
76
document.addEventListener('keydown', (e) => {
77
- if (window.debugKeys) {
+ const isPasswordInput = (document.activeElement?.tagName === 'INPUT' && document.activeElement?.getAttribute('type') === 'password');
78
+ if (window.debugKeys && !isPasswordInput) {
79
window.ui.setDebugInfo(`Key pressed: ${e.code} (${e.key})${e.ctrlKey ? ' + Ctrl' : ''}${e.altKey ? ' + Alt' : ''}${e.shiftKey ? ' + Shift' : ''}${e.metaKey ? ' + Meta' : ''}`);
80
}
81
if (e.ctrlKey && e.altKey) { // Special keybinds
0 commit comments