[GH-ISSUE #2071] [Bug] Keyboard word-for-word text navigation not working #835

Closed
opened 2026-03-23 20:41:46 +00:00 by mirror · 5 comments
Owner

Originally created by @rlndkhlr on GitHub (Mar 21, 2023).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/2071

Originally assigned to: @Xazin on GitHub.

Bug Description

Navigating from word to word using the keyboard's option and arrow keys does not work, the text cursor does not move.

How to Reproduce

On macOS, open/create a document with a few sentences. When trying to use the option ( ⌥ ) key and left/right arrows to jump between or select single words, the cursor does not move.

Expected Behavior

⌥ + left/right arrows: jump with cursor from word to word ()
⇧ + ⌥ + left/right arrows: select single words ()
⌘ + left/right arrows: jump from cursor position to line beginning or end ()
⇧ + ⌘ + left/right arrows: select from cursor position to line beginning or end ()

Operating System

macOS Ventura 13.1

AppFlowy Version(s)

Version 0.1.0 (1) & Version 0.1.1 (1)

Screenshots

No response

Additional Context

No response

Originally created by @rlndkhlr on GitHub (Mar 21, 2023). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/2071 Originally assigned to: @Xazin on GitHub. ### Bug Description Navigating from word to word using the keyboard's option and arrow keys does not work, the text cursor does not move. ### How to Reproduce On macOS, open/create a document with a few sentences. When trying to use the option ( ⌥ ) key and left/right arrows to jump between or select single words, the cursor does not move. ### Expected Behavior ⌥ + left/right arrows: jump with cursor from word to word (❌) ⇧ + ⌥ + left/right arrows: select single words (❌) ⌘ + left/right arrows: jump from cursor position to line beginning or end (✅) ⇧ + ⌘ + left/right arrows: select from cursor position to line beginning or end (✅) ### Operating System macOS Ventura 13.1 ### AppFlowy Version(s) Version 0.1.0 (1) & Version 0.1.1 (1) ### Screenshots _No response_ ### Additional Context _No response_
Author
Owner

@LucasXu0 commented on GitHub (Mar 22, 2023):

Hey, @rlndkhlr. I tested the ⇧ + ⌥ + left/right arrows: select single words on my macOS. It works fine.

  ShortcutEvent(
    key: 'Cursor left word select',
    command: 'shift+alt+arrow left',
    windowsCommand: 'shift+alt+arrow left',
    linuxCommand: 'shift+alt+arrow left',
    handler: cursorLeftWordSelect,
  ),
  ShortcutEvent(
    key: 'Cursor right word select',
    command: 'shift+alt+arrow right',
    windowsCommand: 'shift+alt+arrow right',
    linuxCommand: 'shift+alt+arrow right',
    handler: cursorRightWordSelect,
  ),
<!-- gh-comment-id:1478820256 --> @LucasXu0 commented on GitHub (Mar 22, 2023): Hey, @rlndkhlr. I tested the `⇧ + ⌥ + left/right arrows: select single words` on my macOS. It works fine. ``` ShortcutEvent( key: 'Cursor left word select', command: 'shift+alt+arrow left', windowsCommand: 'shift+alt+arrow left', linuxCommand: 'shift+alt+arrow left', handler: cursorLeftWordSelect, ), ShortcutEvent( key: 'Cursor right word select', command: 'shift+alt+arrow right', windowsCommand: 'shift+alt+arrow right', linuxCommand: 'shift+alt+arrow right', handler: cursorRightWordSelect, ), ```
Author
Owner

@rlndkhlr commented on GitHub (Mar 22, 2023):

Thanks for testing. Tested it again, also on a different machine (and with the latest version) and it works here, too. Must have been a user error in this case, sorry about that.

Unfortunately, the ⌥ + left/right arrows: jump from word to word still does not work. 😔

<!-- gh-comment-id:1479462436 --> @rlndkhlr commented on GitHub (Mar 22, 2023): Thanks for testing. Tested it again, also on a different machine (and with the latest version) and it works here, too. Must have been a user error in this case, sorry about that. Unfortunately, the `⌥ + left/right arrows: jump from word to word` still does not work. 😔
Author
Owner

@Xazin commented on GitHub (Mar 22, 2023):

Thanks for testing. Tested it again, also on a different machine (and with the latest version) and it works here, too. Must have been a user error in this case, sorry about that.

Unfortunately, the ⌥ + left/right arrows: jump from word to word still does not work. 😔

I've made a PR for this on the editor, it was indeed missing.

<!-- gh-comment-id:1479507847 --> @Xazin commented on GitHub (Mar 22, 2023): > Thanks for testing. Tested it again, also on a different machine (and with the latest version) and it works here, too. Must have been a user error in this case, sorry about that. > > Unfortunately, the `⌥ + left/right arrows: jump from word to word` still does not work. 😔 I've made a PR for this on the editor, it was indeed missing.
Author
Owner

@annieappflowy commented on GitHub (Apr 24, 2023):

Confirm it works on Windows
I also updated the shortcuts guide

<!-- gh-comment-id:1520259202 --> @annieappflowy commented on GitHub (Apr 24, 2023): Confirm it works on Windows I also updated the shortcuts [guide](https://appflowy.gitbook.io/docs/essential-documentation/shortcuts)
Author
Owner

@rlndkhlr commented on GitHub (Apr 26, 2023):

Thanks all for fixing. :)

<!-- gh-comment-id:1522946775 --> @rlndkhlr commented on GitHub (Apr 26, 2023): Thanks all for fixing. :)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#835
No description provided.