add mod-y also for mac, fix #396

This commit is contained in:
Philipp Kühn 2019-07-22 17:43:35 +02:00
parent afd959be6c
commit 7c7d2c6e19

View File

@ -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
}