Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Ctrl+right arrow doesn't put the cursor in the expected place on Windows #627

Closed
peterflynn opened this issue Apr 13, 2012 · 3 comments
Closed

Comments

@peterflynn
Copy link
Member

I use this shortcut a lot. In Brackets it just felt sort of "off" at first, until I noticed the pattern...

  1. Paste this string into the editor somewhere: "aaa bbb ccc ddd eee fff ggg hhh"
  2. Put the cursor somewhere within the "aaa"
  3. Hit Ctrl+right a few times

Result: cursor goes to the end of each word (e.g. insertion point is between the last "c" and the space following it)

Expected: cursor goes to the start of each word (e.g. insertion point is between the first 'd" and the space before it)

The current CodeMirror behavior seems to be a Mac/Linux-ism: Espresso, TextMate, and Sublime all behave like CodeMirror (for Alt-right arrow on Mac). But all the Windows apps I tried -- Notepad, WordPad, Eclipse, IntelliJ, Outlook/Word -- behave the way I expect.

@njx
Copy link

njx commented Apr 24, 2012

QRB marking "to user story" for keyboard shortcut story. Removing priority.

@pthiess
Copy link
Contributor

pthiess commented May 10, 2012

Moving to trello: Card 272

@pthiess pthiess closed this as completed May 10, 2012
@peterflynn
Copy link
Member Author

While #670 was in progress in CodeMirror, I did a quick survey of various editors. Interestingly, this is not purely a Mac/Win split. IntelliJ and Eclipse behave this way even on Mac. And Sublime behaves the other way, even on Win.

More details: https://groups.google.com/d/msg/codemirror/WOoqlDuIbaY/1u4ugOukHOIJ

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants