|
80 | 80 | public class FindReplaceOverlay extends Dialog { |
81 | 81 | private final class KeyboardShortcuts { |
82 | 82 | private static final List<KeyStroke> SEARCH_FORWARD = List.of( // |
83 | | - KeyStroke.getInstance(SWT.CR), KeyStroke.getInstance(SWT.KEYPAD_CR)); |
| 83 | + KeyStroke.getInstance(SWT.CR), KeyStroke.getInstance(SWT.KEYPAD_CR), |
| 84 | + KeyStroke.getInstance(SWT.ALT, 'n')); |
84 | 85 | private static final List<KeyStroke> SEARCH_BACKWARD = List.of( // |
85 | 86 | KeyStroke.getInstance(SWT.SHIFT, SWT.CR), KeyStroke.getInstance(SWT.SHIFT, SWT.KEYPAD_CR)); |
86 | 87 | private static final List<KeyStroke> SEARCH_ALL = List.of( // |
87 | | - KeyStroke.getInstance(SWT.MOD1, SWT.CR), KeyStroke.getInstance(SWT.MOD1, SWT.KEYPAD_CR)); |
| 88 | + KeyStroke.getInstance(SWT.MOD1, SWT.CR), KeyStroke.getInstance(SWT.MOD1, SWT.KEYPAD_CR), |
| 89 | + KeyStroke.getInstance(SWT.ALT, 's')); |
| 90 | + private static final List<KeyStroke> REPLACE_ALL = List.of( // |
| 91 | + KeyStroke.getInstance(SWT.MOD1, SWT.CR), KeyStroke.getInstance(SWT.MOD1, SWT.KEYPAD_CR), |
| 92 | + KeyStroke.getInstance(SWT.ALT, 'a')); |
88 | 93 | private static final List<KeyStroke> OPTION_CASE_SENSITIVE = List.of( // |
89 | | - KeyStroke.getInstance(SWT.MOD1 | SWT.SHIFT, 'C'), KeyStroke.getInstance(SWT.MOD1 | SWT.SHIFT, 'c')); |
| 94 | + KeyStroke.getInstance(SWT.MOD1 | SWT.SHIFT, 'C'), KeyStroke.getInstance(SWT.MOD1 | SWT.SHIFT, 'c'), |
| 95 | + KeyStroke.getInstance(SWT.ALT, 'c')); |
90 | 96 | private static final List<KeyStroke> OPTION_WHOLE_WORD = List.of( // |
91 | | - KeyStroke.getInstance(SWT.MOD1 | SWT.SHIFT, 'W'), KeyStroke.getInstance(SWT.MOD1 | SWT.SHIFT, 'w')); |
| 97 | + KeyStroke.getInstance(SWT.MOD1 | SWT.SHIFT, 'W'), KeyStroke.getInstance(SWT.MOD1 | SWT.SHIFT, 'w'), |
| 98 | + KeyStroke.getInstance(SWT.ALT, 'w')); |
92 | 99 | private static final List<KeyStroke> OPTION_REGEX = List.of( // |
93 | | - KeyStroke.getInstance(SWT.MOD1 | SWT.SHIFT, 'P'), KeyStroke.getInstance(SWT.MOD1 | SWT.SHIFT, 'p')); |
| 100 | + KeyStroke.getInstance(SWT.MOD1 | SWT.SHIFT, 'P'), KeyStroke.getInstance(SWT.MOD1 | SWT.SHIFT, 'p'), |
| 101 | + KeyStroke.getInstance(SWT.ALT, 'X')); |
94 | 102 | private static final List<KeyStroke> OPTION_SEARCH_IN_SELECTION = List.of( // |
95 | | - KeyStroke.getInstance(SWT.MOD1 | SWT.SHIFT, 'A'), KeyStroke.getInstance(SWT.MOD1 | SWT.SHIFT, 'a')); |
| 103 | + KeyStroke.getInstance(SWT.MOD1 | SWT.SHIFT, 'A'), KeyStroke.getInstance(SWT.MOD1 | SWT.SHIFT, 'a'), |
| 104 | + KeyStroke.getInstance(SWT.ALT, 'l')); |
96 | 105 | private static final List<KeyStroke> CLOSE = List.of( // |
97 | 106 | KeyStroke.getInstance(SWT.ESC), KeyStroke.getInstance(SWT.MOD1, 'F'), |
98 | 107 | KeyStroke.getInstance(SWT.MOD1, 'f')); |
@@ -597,7 +606,7 @@ private void createReplaceTools() { |
597 | 606 | return; |
598 | 607 | } |
599 | 608 | performReplaceAll(); |
600 | | - }).withShortcuts(KeyboardShortcuts.SEARCH_ALL).build(); |
| 609 | + }).withShortcuts(KeyboardShortcuts.REPLACE_ALL).build(); |
601 | 610 | } |
602 | 611 |
|
603 | 612 | private void createSearchBar() { |
|
0 commit comments