aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/services/tabs/TabItem.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/services/tabs/TabItem.tsx')
-rw-r--r--src/components/services/tabs/TabItem.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/services/tabs/TabItem.tsx b/src/components/services/tabs/TabItem.tsx
index bf193e136..0e999506a 100644
--- a/src/components/services/tabs/TabItem.tsx
+++ b/src/components/services/tabs/TabItem.tsx
@@ -19,7 +19,7 @@ import globalMessages from '../../../i18n/globalMessages';
19import type Service from '../../../models/Service'; 19import type Service from '../../../models/Service';
20import Icon from '../../ui/icon'; 20import Icon from '../../ui/icon';
21import MenuItemConstructorOptions = Electron.MenuItemConstructorOptions; 21import MenuItemConstructorOptions = Electron.MenuItemConstructorOptions;
22import { acceleratorString } from '../../../jsUtils'; 22import { acceleratorString, isShiftKeyPress } from '../../../jsUtils';
23 23
24const IS_SERVICE_DEBUGGING_ENABLED = ( 24const IS_SERVICE_DEBUGGING_ENABLED = (
25 localStorage.getItem('debug') || '' 25 localStorage.getItem('debug') || ''
@@ -171,8 +171,8 @@ class TabItem extends Component<IProps, IState> {
171 ); 171 );
172 } 172 }
173 173
174 handleShortcutIndex = (event, showShortcutIndex = true) => { 174 handleShortcutIndex = (event: KeyboardEvent, showShortcutIndex = true) => {
175 if (event.key === 'Shift') { 175 if (isShiftKeyPress(event.key)) {
176 this.setState({ showShortcutIndex }); 176 this.setState({ showShortcutIndex });
177 } 177 }
178 }; 178 };