Commit 245a5d6f authored by Anze Vavpetic's avatar Anze Vavpetic

if the focus is on #searchBox, don't delete the currently selected widget.

parent b072fde1
......@@ -1289,14 +1289,14 @@ $(function(){
$(window).keydown(function(event) {
if (event.keyCode==46) {
var dialog_open = false;
var dialog_open = false,
search_focus = $('#searchBox').is(':focus');
$(".ui-dialog").each(function() {
if ($(this).is(":visible")) {
dialog_open = true;
}
});
if (!dialog_open) {
if (!dialog_open && !search_focus) {
deleteSelected();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment