Merge pull request #634 from msgmaxim/modifier-keys

Jump words with Ctrl and arrow keys
pull/651/head
Maxim Shishmarev 6 years ago committed by GitHub
commit e06c2bf248
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2418,7 +2418,7 @@
// Alt would normally make the cursor go until the next whitespace, // Alt would normally make the cursor go until the next whitespace,
// but we need to take the presence of a mention into account // but we need to take the presence of a mention into account
if (event.altKey) { if (event.altKey || event.ctrlKey) {
const searchFrom = isLeft ? posToChange - 1 : posToChange + 1; const searchFrom = isLeft ? posToChange - 1 : posToChange + 1;
const toSearch = isLeft const toSearch = isLeft
? text.substr(0, searchFrom) ? text.substr(0, searchFrom)

Loading…
Cancel
Save