From 7c7d2c6e19426916c82a9e35b8d59e1387f4a66a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Mon, 22 Jul 2019 17:43:35 +0200 Subject: [PATCH] add mod-y also for mac, fix #396 --- packages/tiptap-extensions/src/extensions/History.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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 }