-
Notifications
You must be signed in to change notification settings - Fork 0
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
[CLOSED] Explicitly handle Tab keys entered in Quick Open. #4341
Comments
Comment by peterflynn
|
Comment by RaymondLim Tab key entered in Quick Open moves focus out of search text field, which in turn triggers Quick open to close. I'm not sure where the focus goes, but it seems like the editor gets the focus and Tab key event is sent to CodeMirror and it in turn moves the cursor to the end of the current highlighted text. So we're explicitly swallowing the Tab key events here to prevent that. |
Comment by TomMalbran I just tested adding I can reproduce the same error with both Find and Replace dialogs. But still trying to figure what is wrong with those. |
Comment by peterflynn
|
Comment by TomMalbran
|
Comment by peterflynn Also an interesting observation. It looks like a no-op change replacing the selection with the same text as itself. That explains the selection loss and cursor movement (though not the borked CM state). I wonder if CM gets confused by seeing the Tab keyup (which is the only part it would get) and treats the unchanged hidden textarea as if it had been changed... in such a way that its notion of cursor location gets broken. |
Comment by peterflynn Aha! I can repro this in vanilla CodeMirror now. Will file a CM bug and set this to tracking. |
Comment by RaymondLim Thanks |
Comment by TomMalbran Yes, is something like a no-op change, and it doesn't even call the mapped Tab function. Nice find, as a repro in vanilla CodeMirror. BTW, adding this nasty code |
Comment by peterflynn [edit: never mind, see below] |
Comment by peterflynn Oops, mixed up the bug & pull request -- my bad. |
Issue by RaymondLim
Wednesday Aug 07, 2013 at 23:20 GMT
Originally opened as adobe/brackets#4697
This fixes issue #4572.
RaymondLim included the following code: https://github.com/adobe/brackets/pull/4697/commits
The text was updated successfully, but these errors were encountered: