Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac keyboard shortcut Option (⌥) + Left #1101

Closed
jstastny opened this issue Feb 13, 2024 · 0 comments · Fixed by #1102
Closed

Mac keyboard shortcut Option (⌥) + Left #1101

jstastny opened this issue Feb 13, 2024 · 0 comments · Fixed by #1102

Comments

@jstastny
Copy link
Contributor

Describe the bug
On Mac when writing text, the default action of Option + Left keyboard shortcut is to the beginning of the previous word. See https://support.apple.com/en-us/HT201236

Option–Left Arrow: Move the insertion point to the beginning of the previous word.

Similarly with the Option + Right, which jumps to the next word.

However, teams-for-linux uses this shortcut for back and forward history navigation. It seems that the ALT defined in

'ALT_ArrowLeft': () => window.history.back(),
'ALT_ArrowRight': () => window.history.forward()
is translated as Option on Mac, which causes this.

This is very annoying, as it disallows jumping by words when editing message, which is something pretty common and something stored pretty deep in my muscle memory.

To Reproduce
Steps to reproduce the behavior:

  1. Start writing message, write multiple words
  2. Use Option + left keyboard shortcut
  3. Expect to jump to beginning of previous word, but you are navigated to the previous screen (message, etc) instead.

Expected behavior
Expect to jump to beginning of previous word instead of back navigation.

Desktop (please complete the following information):

@jstastny jstastny changed the title Mac keyboard shortcut Option (⌥) + Left ( Mac keyboard shortcut Option (⌥) + Left Feb 13, 2024
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 a pull request may close this issue.

1 participant