Closed Bug 1610222 Opened 5 years ago Closed 5 years ago

Unexpected behavior with native "move to end of word" keyboard shortcut on macOS

Categories

(Core :: DOM: Editor, defect)

73 Branch
Unspecified
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 571913

People

(Reporter: djpowers89, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:73.0) Gecko/20100101 Firefox/73.0

Steps to reproduce:

On macOS, place the cursor in a text area or the location bar where there is a word with punctuation immediately following it (alternatively, double-click to select text on a page).

Use the Option–Right Arrow keyboard shortcut (https://support.apple.com/en-us/HT201236#text).

Actual results:

The cursor is moved passed the end of the word, after the punctuation.

Expected results:

Per the definition from Apple, the keyboard shortcut is defined as "move the insertion point to the end of the next word."

The cursor should consider a "word" to exclude punctuation (as is standard on most macOS applications) and the cursor should be positioned between the word and punctuation character.

Furthermore, this current behavior is inconsistent with that of the Option–Left Arrow shortcut, used to go to the beginning of a word. This action does not include punctuation, properly placing the cursor in between the preceding punctuation and word.

There are six Editing keyboard shortcuts undefined for Firefox (any version) for Mac, per https://support.mozilla.org/en-US/kb/keyboard-shortcuts-perform-firefox-tasks-quickly#firefox:mac
Delete Word to the Left
Delete Word to the Right
Go one Word to the Left
Go one Word to the Right
Go to Beginning of Text
Go to End of Text

Component: Untriaged → DOM: Editor
Product: Firefox → Core

I could reproduce this on Nightly (20200117094453) and 72.0.1 (20200107212822).

Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Unspecified → macOS
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.