@@ -141,7 +141,8 @@ internal sealed class ConfigManager
141
141
142
142
public KeyGesture DisableHotkeysKeyGesture { get ; private set ; } = new ( Key . Pause , ModifierKeys . Alt ) ;
143
143
public KeyGesture MiningModeKeyGesture { get ; private set ; } = new ( Key . M , ModifierKeys . Alt ) ;
144
- public KeyGesture PlayAudioKeyGesture { get ; private set ; } = new ( Key . P , ModifierKeys . Alt ) ;
144
+ public KeyGesture PlayAudioKeyGesture { get ; private set ; } = new ( Key . NumPad1 , ModifierKeys . Alt ) ;
145
+ public KeyGesture ClickAudioButtonKeyGesture { get ; private set ; } = new ( Key . P , ModifierKeys . Alt ) ;
145
146
public KeyGesture ShowManageDictionariesWindowKeyGesture { get ; private set ; } = new ( Key . D , ModifierKeys . Alt ) ;
146
147
public KeyGesture ShowManageFrequenciesWindowKeyGesture { get ; private set ; } = new ( Key . F , ModifierKeys . Alt ) ;
147
148
public KeyGesture ShowPreferencesWindowKeyGesture { get ; private set ; } = new ( Key . L , ModifierKeys . Alt ) ;
@@ -174,9 +175,10 @@ internal sealed class ConfigManager
174
175
public KeyGesture LookupTermAtCaretIndexKeyGesture { get ; private set ; } = new ( Key . NumPad5 , ModifierKeys . Alt ) ;
175
176
public KeyGesture LookupFirstTermKeyGesture { get ; private set ; } = new ( Key . D , ModifierKeys . Alt ) ;
176
177
public KeyGesture LookupSelectedTextKeyGesture { get ; private set ; } = new ( Key . F , ModifierKeys . Alt ) ;
177
- public KeyGesture SelectNextLookupResultKeyGesture { get ; private set ; } = new ( Key . Down , ModifierKeys . Alt ) ;
178
- public KeyGesture SelectPreviousLookupResultKeyGesture { get ; private set ; } = new ( Key . Up , ModifierKeys . Alt ) ;
179
- public KeyGesture MineSelectedLookupResultKeyGesture { get ; private set ; } = new ( Key . D5 , ModifierKeys . Alt ) ;
178
+ public KeyGesture SelectNextItemKeyGesture { get ; private set ; } = new ( Key . Down , ModifierKeys . Alt ) ;
179
+ public KeyGesture SelectPreviousItemKeyGesture { get ; private set ; } = new ( Key . Up , ModifierKeys . Alt ) ;
180
+ public KeyGesture ConfirmItemSelectionKeyGesture { get ; private set ; } = new ( Key . D5 , ModifierKeys . Alt ) ;
181
+ public KeyGesture ClickMiningButtonKeyGesture { get ; private set ; } = new ( Key . D3 , ModifierKeys . Alt ) ;
180
182
#endregion
181
183
182
184
#region Advanced
@@ -531,6 +533,7 @@ public void ApplyPreferences(SqliteConnection connection)
531
533
DisableHotkeysKeyGesture = KeyGestureUtils . GetKeyGestureFromConfig ( connection , nameof ( DisableHotkeysKeyGesture ) , DisableHotkeysKeyGesture ) ;
532
534
MiningModeKeyGesture = KeyGestureUtils . GetKeyGestureFromConfig ( connection , nameof ( MiningModeKeyGesture ) , MiningModeKeyGesture ) ;
533
535
PlayAudioKeyGesture = KeyGestureUtils . GetKeyGestureFromConfig ( connection , nameof ( PlayAudioKeyGesture ) , PlayAudioKeyGesture ) ;
536
+ ClickAudioButtonKeyGesture = KeyGestureUtils . GetKeyGestureFromConfig ( connection , nameof ( ClickAudioButtonKeyGesture ) , ClickAudioButtonKeyGesture ) ;
534
537
LookupKeyKeyGesture = KeyGestureUtils . GetKeyGestureFromConfig ( connection , nameof ( LookupKeyKeyGesture ) , LookupKeyKeyGesture ) ;
535
538
ClosePopupKeyGesture = KeyGestureUtils . GetKeyGestureFromConfig ( connection , nameof ( ClosePopupKeyGesture ) , ClosePopupKeyGesture ) ;
536
539
ShowStatsKeyGesture = KeyGestureUtils . GetKeyGestureFromConfig ( connection , nameof ( ShowStatsKeyGesture ) , ShowStatsKeyGesture ) ;
@@ -546,9 +549,10 @@ public void ApplyPreferences(SqliteConnection connection)
546
549
LookupTermAtCaretIndexKeyGesture = KeyGestureUtils . GetKeyGestureFromConfig ( connection , nameof ( LookupTermAtCaretIndexKeyGesture ) , LookupTermAtCaretIndexKeyGesture ) ;
547
550
LookupFirstTermKeyGesture = KeyGestureUtils . GetKeyGestureFromConfig ( connection , nameof ( LookupFirstTermKeyGesture ) , LookupFirstTermKeyGesture ) ;
548
551
LookupSelectedTextKeyGesture = KeyGestureUtils . GetKeyGestureFromConfig ( connection , nameof ( LookupSelectedTextKeyGesture ) , LookupSelectedTextKeyGesture ) ;
549
- SelectNextLookupResultKeyGesture = KeyGestureUtils . GetKeyGestureFromConfig ( connection , nameof ( SelectNextLookupResultKeyGesture ) , SelectNextLookupResultKeyGesture ) ;
550
- SelectPreviousLookupResultKeyGesture = KeyGestureUtils . GetKeyGestureFromConfig ( connection , nameof ( SelectPreviousLookupResultKeyGesture ) , SelectPreviousLookupResultKeyGesture ) ;
551
- MineSelectedLookupResultKeyGesture = KeyGestureUtils . GetKeyGestureFromConfig ( connection , nameof ( MineSelectedLookupResultKeyGesture ) , MineSelectedLookupResultKeyGesture ) ;
552
+ SelectNextItemKeyGesture = KeyGestureUtils . GetKeyGestureFromConfig ( connection , nameof ( SelectNextItemKeyGesture ) , SelectNextItemKeyGesture ) ;
553
+ SelectPreviousItemKeyGesture = KeyGestureUtils . GetKeyGestureFromConfig ( connection , nameof ( SelectPreviousItemKeyGesture ) , SelectPreviousItemKeyGesture ) ;
554
+ ConfirmItemSelectionKeyGesture = KeyGestureUtils . GetKeyGestureFromConfig ( connection , nameof ( ConfirmItemSelectionKeyGesture ) , ConfirmItemSelectionKeyGesture ) ;
555
+ ClickMiningButtonKeyGesture = KeyGestureUtils . GetKeyGestureFromConfig ( connection , nameof ( ClickMiningButtonKeyGesture ) , ClickMiningButtonKeyGesture ) ;
552
556
CaptureTextFromClipboardKeyGesture = KeyGestureUtils . GetKeyGestureFromConfig ( connection , nameof ( CaptureTextFromClipboardKeyGesture ) , CaptureTextFromClipboardKeyGesture ) ;
553
557
CaptureTextFromWebSocketKeyGesture = KeyGestureUtils . GetKeyGestureFromConfig ( connection , nameof ( CaptureTextFromWebSocketKeyGesture ) , CaptureTextFromWebSocketKeyGesture ) ;
554
558
ReconnectToWebSocketServerKeyGesture = KeyGestureUtils . GetKeyGestureFromConfig ( connection , nameof ( ReconnectToWebSocketServerKeyGesture ) , ReconnectToWebSocketServerKeyGesture ) ;
@@ -763,6 +767,7 @@ public void LoadPreferenceWindow(PreferencesWindow preferenceWindow)
763
767
preferenceWindow . DisableHotkeysKeyGestureTextBox . Text = DisableHotkeysKeyGesture . ToFormattedString ( ) ;
764
768
preferenceWindow . MiningModeKeyGestureTextBox . Text = MiningModeKeyGesture . ToFormattedString ( ) ;
765
769
preferenceWindow . PlayAudioKeyGestureTextBox . Text = PlayAudioKeyGesture . ToFormattedString ( ) ;
770
+ preferenceWindow . ClickAudioButtonKeyGestureTextBox . Text = ClickAudioButtonKeyGesture . ToFormattedString ( ) ;
766
771
preferenceWindow . LookupKeyKeyGestureTextBox . Text = LookupKeyKeyGesture . ToFormattedString ( ) ;
767
772
768
773
preferenceWindow . ShowManageDictionariesWindowKeyGestureTextBox . Text =
@@ -817,12 +822,14 @@ public void LoadPreferenceWindow(PreferencesWindow preferenceWindow)
817
822
LookupFirstTermKeyGesture . ToFormattedString ( ) ;
818
823
preferenceWindow . LookupSelectedTextKeyGestureTextBox . Text =
819
824
LookupSelectedTextKeyGesture . ToFormattedString ( ) ;
820
- preferenceWindow . SelectNextLookupResultKeyGestureTextBox . Text =
821
- SelectNextLookupResultKeyGesture . ToFormattedString ( ) ;
822
- preferenceWindow . SelectPreviousLookupResultKeyGestureTextBox . Text =
823
- SelectPreviousLookupResultKeyGesture . ToFormattedString ( ) ;
824
- preferenceWindow . MineSelectedLookupResultKeyGestureTextBox . Text =
825
- MineSelectedLookupResultKeyGesture . ToFormattedString ( ) ;
825
+ preferenceWindow . SelectNextItemKeyGestureTextBox . Text =
826
+ SelectNextItemKeyGesture . ToFormattedString ( ) ;
827
+ preferenceWindow . SelectPreviousItemKeyGestureTextBox . Text =
828
+ SelectPreviousItemKeyGesture . ToFormattedString ( ) ;
829
+ preferenceWindow . ConfirmItemSelectionKeyGestureTextBox . Text =
830
+ ConfirmItemSelectionKeyGesture . ToFormattedString ( ) ;
831
+ preferenceWindow . ClickMiningButtonKeyGestureTextBox . Text =
832
+ ClickMiningButtonKeyGesture . ToFormattedString ( ) ;
826
833
preferenceWindow . CaptureTextFromClipboardKeyGestureTextBox . Text =
827
834
CaptureTextFromClipboardKeyGesture . ToFormattedString ( ) ;
828
835
preferenceWindow . CaptureTextFromWebSocketKeyGestureTextBox . Text =
@@ -1017,6 +1024,7 @@ public async Task SavePreferences(PreferencesWindow preferenceWindow)
1017
1024
KeyGestureUtils . UpdateKeyGesture ( connection , nameof ( DisableHotkeysKeyGesture ) , preferenceWindow . DisableHotkeysKeyGestureTextBox . Text ) ;
1018
1025
KeyGestureUtils . UpdateKeyGesture ( connection , nameof ( MiningModeKeyGesture ) , preferenceWindow . MiningModeKeyGestureTextBox . Text ) ;
1019
1026
KeyGestureUtils . UpdateKeyGesture ( connection , nameof ( PlayAudioKeyGesture ) , preferenceWindow . PlayAudioKeyGestureTextBox . Text ) ;
1027
+ KeyGestureUtils . UpdateKeyGesture ( connection , nameof ( ClickAudioButtonKeyGesture ) , preferenceWindow . ClickAudioButtonKeyGestureTextBox . Text ) ;
1020
1028
KeyGestureUtils . UpdateKeyGesture ( connection , nameof ( LookupKeyKeyGesture ) , preferenceWindow . LookupKeyKeyGestureTextBox . Text ) ;
1021
1029
1022
1030
KeyGestureUtils . UpdateKeyGesture ( connection , nameof ( ShowManageDictionariesWindowKeyGesture ) ,
@@ -1071,12 +1079,14 @@ public async Task SavePreferences(PreferencesWindow preferenceWindow)
1071
1079
preferenceWindow . LookupFirstTermKeyGestureTextBox . Text ) ;
1072
1080
KeyGestureUtils . UpdateKeyGesture ( connection , nameof ( LookupSelectedTextKeyGesture ) ,
1073
1081
preferenceWindow . LookupSelectedTextKeyGestureTextBox . Text ) ;
1074
- KeyGestureUtils . UpdateKeyGesture ( connection , nameof ( SelectNextLookupResultKeyGesture ) ,
1075
- preferenceWindow . SelectNextLookupResultKeyGestureTextBox . Text ) ;
1076
- KeyGestureUtils . UpdateKeyGesture ( connection , nameof ( SelectPreviousLookupResultKeyGesture ) ,
1077
- preferenceWindow . SelectPreviousLookupResultKeyGestureTextBox . Text ) ;
1078
- KeyGestureUtils . UpdateKeyGesture ( connection , nameof ( MineSelectedLookupResultKeyGesture ) ,
1079
- preferenceWindow . MineSelectedLookupResultKeyGestureTextBox . Text ) ;
1082
+ KeyGestureUtils . UpdateKeyGesture ( connection , nameof ( SelectNextItemKeyGesture ) ,
1083
+ preferenceWindow . SelectNextItemKeyGestureTextBox . Text ) ;
1084
+ KeyGestureUtils . UpdateKeyGesture ( connection , nameof ( SelectPreviousItemKeyGesture ) ,
1085
+ preferenceWindow . SelectPreviousItemKeyGestureTextBox . Text ) ;
1086
+ KeyGestureUtils . UpdateKeyGesture ( connection , nameof ( ConfirmItemSelectionKeyGesture ) ,
1087
+ preferenceWindow . ConfirmItemSelectionKeyGestureTextBox . Text ) ;
1088
+ KeyGestureUtils . UpdateKeyGesture ( connection , nameof ( ClickMiningButtonKeyGesture ) ,
1089
+ preferenceWindow . ClickMiningButtonKeyGestureTextBox . Text ) ;
1080
1090
KeyGestureUtils . UpdateKeyGesture ( connection , nameof ( CaptureTextFromClipboardKeyGesture ) ,
1081
1091
preferenceWindow . CaptureTextFromClipboardKeyGestureTextBox . Text ) ;
1082
1092
KeyGestureUtils . UpdateKeyGesture ( connection , nameof ( CaptureTextFromWebSocketKeyGesture ) ,
0 commit comments