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