Merge pull request #16709 from calixteman/bug1844293

[Editor] Bind redo action on meta+shift+z on mac (bug 1844293)
This commit is contained in:
calixteman 2023-07-19 12:01:58 +02:00 committed by GitHub
commit 9f390755b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
],
[