Merge pull request #382 from Aaron3/patch-1

Switch check from !isMac to isWindows for specificity.
This commit is contained in:
Philipp Kühn 2019-07-10 09:26:11 +02:00 committed by GitHub
commit df29153dba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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