dart-lang / sdk

The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
https://dart.dev
BSD 3-Clause "New" or "Revised" License
10.09k stars 1.56k forks source link

in the dart editor, alt key causes cursor to warp #15755

Closed trinarytree closed 9 years ago

trinarytree commented 10 years ago

to reproduce: in the dart editor, open a dart file and ctrl+f to search for some text that actually occurs in the file. it will find the match and move the cursor there. fine.

now click somewhere else to move the cursor. then hit the alt key. the cursor will mysteriously warp to the place where your last ctrl+f matched. that's not what i want! notice that it happens as soon as the alt key is pressed down, not when you release it.

it gets worse. scroll with the mouse wheel and click somewhere so that the last ctrl+f match isn't even on the screen. hit alt. the cursor will warp to the last match, but the screen will stay where it is. so now you'll say "where did my cursor go?" now use the arrow keys or start typing, the screen will warp to where the cursor is causing total confusion.

it keeps exhibiting this weird alt behavior even after you cancel the search (i.e. hit ctrl+f, search for something, then hit esc). my key bindings file has nothing directly bound to the alt key alone, so i can't imagine this is working as intended. i also confirmed that this happens to co-workers on their setups.

this is really annoying. imagine you are editing a file, search for something, then 5 minutes later, you say "hmm.. how do you spell "labeled"? is it 1 L or 2? let me google search for it." then you task switch to chrome with alt+tab, get your answer, alt+tab back, start typing, and bamm! your screen warps to a different location as soon as you start typing and all these big red Xs appear. and then you're like "what? ok ctrl+z. where was i typing before??" even when you know it's going to happen, you have to keep readjusting where your cursor is as you switch back and forth between applications. so you have to memorize the line number where you were working or put some kind of temporary watermark text there like ??? and search for it so the warp goes back to approximately where you were working. grrr!

Dart VM version: 1.0.2.1_r30821 (Tue Dec 3 12:51:29 2013) on "linux_x64"

keertip commented 10 years ago

Set owner to @keertip. Added this to the 1.2 milestone. Removed Priority-Unassigned label. Added Priority-Medium, Area-Editor, C1, Triaged labels.

keertip commented 10 years ago

https://codereview.chromium.org/134453007/


Added Fixed label.

clayberg commented 10 years ago

Removed this from the 1.2 milestone. Added this to the 1.1 milestone.

scheglov commented 10 years ago

Issue #14697 has been merged into this issue.


cc @pq. cc @stevemessick.