From 295eb13a44fa2a2d1c66cf92ddfc6c5a290c1f5a Mon Sep 17 00:00:00 2001 From: Calixte Denizet Date: Wed, 19 Jul 2023 11:17:50 +0200 Subject: [PATCH] [Editor] Bind redo action on meta+shift+z on mac (bug 1844293) --- src/display/editor/tools.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/display/editor/tools.js b/src/display/editor/tools.js index 58d209d04..a61bf2093 100644 --- a/src/display/editor/tools.js +++ b/src/display/editor/tools.js @@ -555,7 +555,15 @@ class AnnotationEditorUIManager { ], [["ctrl+z", "mac+meta+z"], AnnotationEditorUIManager.prototype.undo], [ - ["ctrl+y", "ctrl+shift+Z", "mac+meta+shift+Z"], + // On mac, depending of the OS version, the event.key is either "z" or + // "Z" when the user presses "meta+shift+z". + [ + "ctrl+y", + "ctrl+shift+z", + "mac+meta+shift+z", + "ctrl+shift+Z", + "mac+meta+shift+Z", + ], AnnotationEditorUIManager.prototype.redo, ], [