We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bcdba59 commit aa7bb5aCopy full SHA for aa7bb5a
packages/editor/src/components/zoom-out-toggle/index.js
@@ -12,6 +12,7 @@ import {
12
useShortcut,
13
store as keyboardShortcutsStore,
14
} from '@wordpress/keyboard-shortcuts';
15
+import { isAppleOS } from '@wordpress/keycodes';
16
17
/**
18
* Internal dependencies
@@ -40,7 +41,9 @@ const ZoomOutToggle = ( { disabled } ) => {
40
41
category: 'global',
42
description: __( 'Enter or exit zoom out.' ),
43
keyCombination: {
- modifier: 'primaryShift',
44
+ // `primaryShift+0` (`ctrl+shift+0`) is the shortcut for switching
45
+ // to input mode in Windows, so apply a different key combination.
46
+ modifier: isAppleOS() ? 'primaryShift' : 'secondary',
47
character: '0',
48
},
49
} );
0 commit comments