mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Merge pull request #4154 from node-red/add-editor-scope
Add editor scope to keyboard shortcut scope select
This commit is contained in:
commit
67dd7e30fa
@ -491,6 +491,7 @@
|
|||||||
"unassigned": "Unassigned",
|
"unassigned": "Unassigned",
|
||||||
"global": "global",
|
"global": "global",
|
||||||
"workspace": "workspace",
|
"workspace": "workspace",
|
||||||
|
"editor": "edit dialog",
|
||||||
"selectAll": "Select all",
|
"selectAll": "Select all",
|
||||||
"selectNone": "Select none",
|
"selectNone": "Select none",
|
||||||
"selectAllConnected": "Select connected",
|
"selectAllConnected": "Select connected",
|
||||||
|
@ -491,7 +491,11 @@ RED.keyboard = (function() {
|
|||||||
okButton.attr("disabled",!valid);
|
okButton.attr("disabled",!valid);
|
||||||
});
|
});
|
||||||
|
|
||||||
var scopeSelect = $('<select><option value="*" data-i18n="keyboard.global"></option><option value="red-ui-workspace" data-i18n="keyboard.workspace"></option></select>').appendTo(scope);
|
var scopeSelect = $('<select>'+
|
||||||
|
'<option value="*" data-i18n="keyboard.global"></option>'+
|
||||||
|
'<option value="red-ui-workspace" data-i18n="keyboard.workspace"></option>'+
|
||||||
|
'<option value="red-ui-editor-stack" data-i18n="keyboard.editor"></option>'+
|
||||||
|
'</select>').appendTo(scope);
|
||||||
scopeSelect.i18n();
|
scopeSelect.i18n();
|
||||||
if (object.scope === "workspace") {
|
if (object.scope === "workspace") {
|
||||||
object.scope = "red-ui-workspace";
|
object.scope = "red-ui-workspace";
|
||||||
|
Loading…
Reference in New Issue
Block a user