Commit 2d84ecf
committed
Allow Cut/Copy/Paste while still holding LMB
Fix the behavior of Notepad++ v8.6.1 and newer when if you hold the left mouse button, you cannot use the usual Ctrl+X/C/V.
Due to the N++ has registered the Ctrl+X/C/V accelerators in v8.6.1+ (before, the Scintilla handled that), we have to detect such a situation before calling the N++ TranslateAccelerator in the main message loop.
In such a situation we cannot use the usual WM_KEYDOWN message handler, as that TranslateAccelerator eats any Ctrl&X keydowns from the queue.
At the WM_KEYUP it works but behaves slightly different than the users expect.1 parent d6eadf1 commit 2d84ecf
2 files changed
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
71 | 75 | | |
72 | 76 | | |
73 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
846 | 846 | | |
847 | 847 | | |
848 | 848 | | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
849 | 871 | | |
850 | 872 | | |
851 | 873 | | |
| |||
0 commit comments