Skip to content

Commit aa7bb5a

Browse files
t-hamanontsekourasMamadukacarolinantorounit
authored
Fix zoom out shortcut on Windows (#66506)
Co-authored-by: t-hamano <[email protected]> Co-authored-by: ntsekouras <[email protected]> Co-authored-by: Mamaduka <[email protected]> Co-authored-by: carolinan <[email protected]> Co-authored-by: torounit <[email protected]>
1 parent bcdba59 commit aa7bb5a

File tree

1 file changed

+4
-1
lines changed
  • packages/editor/src/components/zoom-out-toggle

1 file changed

+4
-1
lines changed

packages/editor/src/components/zoom-out-toggle/index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
useShortcut,
1313
store as keyboardShortcutsStore,
1414
} from '@wordpress/keyboard-shortcuts';
15+
import { isAppleOS } from '@wordpress/keycodes';
1516

1617
/**
1718
* Internal dependencies
@@ -40,7 +41,9 @@ const ZoomOutToggle = ( { disabled } ) => {
4041
category: 'global',
4142
description: __( 'Enter or exit zoom out.' ),
4243
keyCombination: {
43-
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',
4447
character: '0',
4548
},
4649
} );

0 commit comments

Comments
 (0)