From 3dcbb6ab7fba870d3378bb3117cae15d1d00c20e Mon Sep 17 00:00:00 2001 From: Felix Lawrence Date: Sat, 21 Nov 2026 14:13:42 -0700 Subject: [PATCH] Don't hijack ctrl-V for Dvorak users. Fixes #1996 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Zen-mode was bound to both the logical key '.', as well as the physical key '.'. On keyboard layouts where these are the same, it's redundant. On other keyboard layouts, users typically expect the logical key to be used for keyboard shortcuts, the same as for regular typing. Exceptions to this, such as Apple's "Dvorak - QWERTY ⌘", are handled at the OS level, not by individual applications. Before this commit, a ctrl-v paste operation on a Dvorak keyboard would be hijacked by a shift to Zen mode. And a ctrl-. would also shift to Zen mode. Now only the latter does. This is a drive-by, untested commit. Signed-off-by: Felix Lawrence <5019234+felixlawrence@users.noreply.github.com> --- src/App.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/App.vue b/src/App.vue index 2f848a0b3..27a2ab089 100644 --- a/src/App.vue +++ b/src/App.vue @@ -329,9 +329,7 @@ export default { if (event.repeat) { return } - // `code` pins the physical key across layouts, `key` covers those with the period elsewhere. - const isToggle = (event.ctrlKey || event.metaKey) - && (event.code === 'Period' || event.key === '.') + const isToggle = (event.ctrlKey || event.metaKey) && (event.key === '.') const isExit = event.key === 'Escape' && this.zenMode if (!isToggle && !isExit) { return