mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-31 01:25:38 -05:00
Fix redo keyboard shortcut in notebook markdown (#13967)
* add cmd+y for redo * add ctrl+shift+z for redo * remove listener for redo when in markdown mode
This commit is contained in:
@@ -71,7 +71,7 @@ export class TextCellComponent extends CellView implements OnInit, OnChanges {
|
||||
// select the active .
|
||||
if ((e.ctrlKey || e.metaKey) && e.key === 'a') {
|
||||
preventDefaultAndExecCommand(e, 'selectAll');
|
||||
} else if ((e.metaKey && e.shiftKey && e.key === 'z') || (e.ctrlKey && e.key === 'y')) {
|
||||
} else if ((e.metaKey && e.shiftKey && e.key === 'z') || (e.ctrlKey && e.key === 'y') && !this.markdownMode) {
|
||||
preventDefaultAndExecCommand(e, 'redo');
|
||||
} else if ((e.ctrlKey || e.metaKey) && e.key === 'z') {
|
||||
preventDefaultAndExecCommand(e, 'undo');
|
||||
|
||||
Reference in New Issue
Block a user