Skip to content

Don't hijack ctrl-V for Dvorak users. Fixes #1996 - #2143

Open
felixlawrence wants to merge 1 commit into
nextcloud:mainfrom
felixlawrence:dont-hijack-ctrl-v
Open

felixlawrence wants to merge 1 commit into
nextcloud:mainfrom
felixlawrence:dont-hijack-ctrl-v

Conversation

@felixlawrence

Copy link
Copy Markdown

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.

🤖 AI (if applicable)

The content of this PR was not partly or fully generated using AI.

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant