mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-19 04:00:38 +09:00
Fix issue detail inbox archive shortcut
This commit is contained in:
parent
296033620f
commit
e21e442033
3 changed files with 11 additions and 50 deletions
|
|
@ -47,11 +47,11 @@ export function resolveInboxQuickArchiveKeyAction({
|
|||
hasOpenDialog: boolean;
|
||||
}): InboxQuickArchiveKeyAction {
|
||||
if (!armed) return "ignore";
|
||||
if (defaultPrevented) return "disarm";
|
||||
if (defaultPrevented) return "ignore";
|
||||
if (metaKey || ctrlKey || altKey || isModifierOnlyKey(key)) return "ignore";
|
||||
if (hasOpenDialog || isKeyboardShortcutTextInputTarget(target)) return "disarm";
|
||||
if (key === "y") return "archive";
|
||||
return "disarm";
|
||||
if (hasOpenDialog || isKeyboardShortcutTextInputTarget(target)) return "ignore";
|
||||
if (key.toLowerCase() === "y") return "archive";
|
||||
return "ignore";
|
||||
}
|
||||
|
||||
export function resolveGoToInboxKeyAction({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue