diff --git a/packages/tiptap-extensions/src/extensions/History.js b/packages/tiptap-extensions/src/extensions/History.js index 003314af7..1d1448fd4 100644 --- a/packages/tiptap-extensions/src/extensions/History.js +++ b/packages/tiptap-extensions/src/extensions/History.js @@ -15,13 +15,13 @@ export default class History extends Extension { } keys() { - const isMac = typeof navigator !== 'undefined' ? /Mac/.test(navigator.platform) : false + const isWindows = typeof navigator !== 'undefined' ? /Win/.test(navigator.platform) : false const keymap = { 'Mod-z': undo, 'Shift-Mod-z': redo, } - if (!isMac) { + if (isWindows) { keymap['Mod-y'] = redo }