mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Add Ctrl-x (cut) to shortcuts
This commit is contained in:
parent
572a6156d6
commit
789d64f7ed
@ -110,7 +110,6 @@
|
||||
<div id="palette-analysis-function"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="palette-category">
|
||||
<div class="palette-header"><i class="expanded icon-chevron-down"></i><span>advanced</span></div>
|
||||
<div class="palette-content">
|
||||
@ -138,7 +137,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="chart-zoom-controls">
|
||||
<div class="btn-group">
|
||||
<a class="btn btn-mini" id="btn-zoom-out" href="#"><i class="icon-zoom-out"></i></a>
|
||||
@ -156,7 +154,6 @@
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="notifications"></div>
|
||||
<div id="dropTarget"><div>Drop the flow here</div></div>
|
||||
|
||||
@ -199,7 +196,8 @@
|
||||
<td><span class="help-key">Delete</span></td><td>Delete selected nodes or link</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"></td>
|
||||
<td><span class="help-key">Ctrl</span> <span class="help-key">x</span></td><td>Cut selected nodes</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="help-key">Ctrl</span> <span class="help-key">c</span></td><td>Copy selected nodes</td>
|
||||
@ -223,7 +221,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="node-dialog-library-save-confirm" class="hide">
|
||||
<form class="form-horizontal">
|
||||
<div style="text-align: center; padding-top: 30px;">
|
||||
|
@ -514,12 +514,13 @@ RED.view = function() {
|
||||
RED.keyboard.remove(/* backspace */ 8);
|
||||
RED.keyboard.remove(/* delete */ 46);
|
||||
RED.keyboard.remove(/* c */ 67);
|
||||
RED.keyboard.remove(/* x */ 88);
|
||||
} else {
|
||||
RED.keyboard.add(/* backspace */ 8,function(){deleteSelection();d3.event.preventDefault();});
|
||||
RED.keyboard.add(/* delete */ 46,function(){deleteSelection();d3.event.preventDefault();});
|
||||
RED.keyboard.add(/* c */ 67,{ctrl:true},function(){copySelection();d3.event.preventDefault();});
|
||||
RED.keyboard.add(/* x */ 88,{ctrl:true},function(){copySelection();deleteSelection();d3.event.preventDefault();});
|
||||
}
|
||||
|
||||
if (moving_set.length == 1) {
|
||||
RED.sidebar.info.refresh(moving_set[0].n);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user