Skip to content

Commit

Permalink
support ctrl+y to redo on windows
Browse files Browse the repository at this point in the history
Closes #429
  • Loading branch information
jhchen committed Aug 4, 2015
1 parent 84fe3e8 commit 9b2e524
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/modules/undo-manager.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ class UndoManager
this.undo()
return false
)
keyboard.addHotkey(UndoManager.hotkeys.REDO, =>
redoKey = [UndoManager.hotkeys.REDO]
if (navigator.platform.indexOf('Win') > -1)
redoKey.push({ key: 'Y', metaKey: true })
keyboard.addHotkey(redoKey, =>
@quill.editor.checkUpdate()
this.redo()
return false
Expand Down

0 comments on commit 9b2e524

Please sign in to comment.