Add visual cue as to whether the workspace is focused

This commit is contained in:
Nick O'Leary
2017-01-24 16:14:03 +00:00
parent b10141d71f
commit 128c4fe222
4 changed files with 21 additions and 0 deletions

View File

@@ -384,6 +384,12 @@ RED.view = (function() {
}
}
});
$("#chart").focus(function() {
$("#workspace-tabs").addClass("workspace-focussed")
});
$("#chart").blur(function() {
$("#workspace-tabs").removeClass("workspace-focussed")
});
RED.actions.add("core:copy-selection-to-internal-clipboard",copySelection);
RED.actions.add("core:cut-selection-to-internal-clipboard",function(){copySelection();deleteSelection();});