Commit 617ef9e
committed
Prevent several arrow keys in a paste event from causing problems
Two parts:
* last character of things like "KEY_LEFT" was being added
when rendering got slow enough that holding down the key
resulted in two keypress events getting queued up so that
they ended up in a paste event. Stopped code from sanitizing
control sequences by taking the last character, just throw
out events instead.
* To prevent cursor from being stuck in the above case, if
all events in a paste event are the same, and they're all
control characters, process just one of them.1 parent aa2d90c commit 617ef9e
1 file changed
+21
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
280 | 283 | | |
281 | 284 | | |
282 | 285 | | |
| |||
416 | 419 | | |
417 | 420 | | |
418 | 421 | | |
419 | | - | |
| 422 | + | |
| 423 | + | |
420 | 424 | | |
421 | 425 | | |
422 | 426 | | |
| |||
919 | 923 | | |
920 | 924 | | |
921 | 925 | | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
922 | 942 | | |
923 | 943 | | |
924 | 944 | | |
| |||
0 commit comments