DevTools: make console prompt aware of linewrap in handling arrow keys
The console prompt currently listens for ArrowUp/ArrowDown and loads the next/previous command from history, if the cursor is on the first/last line. Since a logical CodeMirror line may wrap onto multiple visual rows, this may unintentionally load the next command. This CL adds a check whether the cursor is truly on the first/last visual row. Problem gif: https://imgur.com/a/s7gPL Bug: 808130 Change-Id: I04363e25206cece28b32b80dfc548340413112cf Reviewed-on: https://chromium-review.googlesource.com/927690 Commit-Queue: Erik Luo <luoe@chromium.org> Reviewed-by:Dmitry Gozman <dgozman@chromium.org> Reviewed-by:
Joel Einbinder <einbinder@chromium.org> Cr-Commit-Position: refs/heads/master@{#541714}
Showing
Please register or sign in to comment