fix: support repeated popup scroll keys

This commit is contained in:
2026-03-05 19:20:55 -08:00
parent 0cac446725
commit 8ca05859a9
3 changed files with 46 additions and 4 deletions

View File

@@ -446,7 +446,6 @@ export function createKeyboardHandlers(
}
function handleYomitanPopupKeybind(e: KeyboardEvent): boolean {
if (e.repeat) return false;
const modifierOnlyCodes = new Set([
'ShiftLeft',
'ShiftRight',
@@ -460,6 +459,7 @@ export function createKeyboardHandlers(
if (modifierOnlyCodes.has(e.code)) return false;
if (!e.ctrlKey && !e.metaKey && !e.altKey && e.code === 'KeyM') {
if (e.repeat) return false;
dispatchYomitanPopupMineSelected();
return true;
}