fixing keyboard shortcuts when dialog is open
parent
d58281175b
commit
323fce2fe1
|
@ -64,6 +64,7 @@ MD.Keyboard = function(){
|
|||
|
||||
// keyboard shortcut exists
|
||||
if (keys[key]) {
|
||||
if (editor.modal.isVisible()) return;
|
||||
e.preventDefault();
|
||||
keys[key]();
|
||||
}
|
||||
|
|
|
@ -53,7 +53,12 @@ MD.Modal = function(){
|
|||
}
|
||||
};
|
||||
|
||||
function isVisible(){
|
||||
return $('#svg_source_editor').is(":visible");
|
||||
}
|
||||
|
||||
this.cancelOverlays = cancelOverlays;
|
||||
this.isVisible = isVisible;
|
||||
this.viewSource = viewSource;
|
||||
this.saveSource = saveSource;
|
||||
|
||||
|
|
Loading…
Reference in New Issue