mirror of
https://github.com/abusoww/tuxmate.git
synced 2026-04-23 14:25:21 +02:00
fix: ignore Ctrl/Alt/Meta in keyboard shortcuts
This commit is contained in:
@@ -95,6 +95,9 @@ export function CommandFooter({
|
||||
return;
|
||||
}
|
||||
|
||||
// Ignore if modifier keys are pressed (prevents conflicts with browser shortcuts like Ctrl+D)
|
||||
if (e.ctrlKey || e.altKey || e.metaKey) return;
|
||||
|
||||
// These shortcuts always work
|
||||
const alwaysEnabled = ['t', 'c'];
|
||||
if (selectedCount === 0 && !alwaysEnabled.includes(e.key)) return;
|
||||
|
||||
Reference in New Issue
Block a user