313
352
// When doing undo and redo with keyboard shortcuts (Ctrl|Cmd+Z, Ctrl|Cmd+Shift+Z, Ctrl|Cmd+Y),
314
353
// set a flag to not focus the inline dialog. The editor has to remain focused so the users can do consecutive undo/redo.
315
354
editor.on( 'keydown', function( event ) {
316
359
if ( event.altKey || ( tinymce.Env.mac && ( ! event.metaKey || event.ctrlKey ) ) ||
317
360
( ! tinymce.Env.mac && ! event.ctrlKey ) ) {