diff options
author | 2023-05-24 06:57:50 +0530 | |
---|---|---|
committer | 2023-05-24 16:40:43 +0530 | |
commit | e245b4fa229bee1e2ab97fcb42de3831b8bdbe5b (patch) | |
tree | d684777b3fde5470c9f99304a9f022422ffb8045 /src/features/quickSwitch/Component.tsx | |
parent | 6.3.0-nightly.9 [skip ci] (diff) | |
download | ferdium-app-e245b4fa229bee1e2ab97fcb42de3831b8bdbe5b.tar.gz ferdium-app-e245b4fa229bee1e2ab97fcb42de3831b8bdbe5b.tar.zst ferdium-app-e245b4fa229bee1e2ab97fcb42de3831b8bdbe5b.zip |
Upgrade npm modules
Diffstat (limited to 'src/features/quickSwitch/Component.tsx')
-rw-r--r-- | src/features/quickSwitch/Component.tsx | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/features/quickSwitch/Component.tsx b/src/features/quickSwitch/Component.tsx index fb85d61e1..ab07e5d4d 100644 --- a/src/features/quickSwitch/Component.tsx +++ b/src/features/quickSwitch/Component.tsx | |||
@@ -215,24 +215,29 @@ class QuickSwitchModal extends Component<IProps, IState> { | |||
215 | _handleKeyDown(event: KeyboardEvent): void { | 215 | _handleKeyDown(event: KeyboardEvent): void { |
216 | if (ModalState.isModalVisible) { | 216 | if (ModalState.isModalVisible) { |
217 | switch (event.keyCode) { | 217 | switch (event.keyCode) { |
218 | case this.ARROW_DOWN: | 218 | case this.ARROW_DOWN: { |
219 | this.changeSelected(1); | 219 | this.changeSelected(1); |
220 | break; | 220 | break; |
221 | case this.TAB: | 221 | } |
222 | case this.TAB: { | ||
222 | if (event.shiftKey) { | 223 | if (event.shiftKey) { |
223 | this.changeSelected(-1); | 224 | this.changeSelected(-1); |
224 | } else { | 225 | } else { |
225 | this.changeSelected(1); | 226 | this.changeSelected(1); |
226 | } | 227 | } |
227 | break; | 228 | break; |
228 | case this.ARROW_UP: | 229 | } |
230 | case this.ARROW_UP: { | ||
229 | this.changeSelected(-1); | 231 | this.changeSelected(-1); |
230 | break; | 232 | break; |
231 | case this.ENTER: | 233 | } |
234 | case this.ENTER: { | ||
232 | this.openService(this.state.selected); | 235 | this.openService(this.state.selected); |
233 | break; | 236 | break; |
234 | default: | 237 | } |
238 | default: { | ||
235 | break; | 239 | break; |
240 | } | ||
236 | } | 241 | } |
237 | } | 242 | } |
238 | } | 243 | } |