- Enhancement: Allow 'a' also with meta key (command in Mac, ctrl otherwise)
to select all (part of #291) - Enhancement: Add a global escape key listener to clear the selection - Refactoring: Change 'a' to lower case in key command to avoid impression that shift is neededmaster
parent
3d2085c991
commit
2a943cd1fa
|
@ -2,6 +2,11 @@
|
||||||
|
|
||||||
- Enhancement: Allow "Escape" to work with hotkeys within text boxes;
|
- Enhancement: Allow "Escape" to work with hotkeys within text boxes;
|
||||||
allows escaping out of source textarea (part of #291)
|
allows escaping out of source textarea (part of #291)
|
||||||
|
- Enhancement: Allow 'a' also with meta key (command in Mac, ctrl otherwise)
|
||||||
|
to select all (part of #291)
|
||||||
|
- Enhancement: Add a global escape key listener to clear the selection
|
||||||
|
- Refactoring: Change 'a' to lower case in key command to avoid impression
|
||||||
|
that shift is needed
|
||||||
|
|
||||||
# 3.0.0-rc.3
|
# 3.0.0-rc.3
|
||||||
|
|
||||||
|
|
|
@ -33404,10 +33404,20 @@ editor.init = function () {
|
||||||
svgCanvas.cloneSelectedElements(10, 0);
|
svgCanvas.cloneSelectedElements(10, 0);
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
key: 'A',
|
key: 'a',
|
||||||
fn: function fn() {
|
fn: function fn() {
|
||||||
svgCanvas.selectAllInCurrentLayer();
|
svgCanvas.selectAllInCurrentLayer();
|
||||||
}
|
}
|
||||||
|
}, {
|
||||||
|
key: modKey + 'a',
|
||||||
|
fn: function fn() {
|
||||||
|
svgCanvas.selectAllInCurrentLayer();
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
key: ['esc', false, false],
|
||||||
|
fn: function fn() {
|
||||||
|
svgCanvas.clearSelection();
|
||||||
|
}
|
||||||
}, // Standard shortcuts
|
}, // Standard shortcuts
|
||||||
{
|
{
|
||||||
key: modKey + 'z',
|
key: modKey + 'z',
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -33410,10 +33410,20 @@
|
||||||
svgCanvas.cloneSelectedElements(10, 0);
|
svgCanvas.cloneSelectedElements(10, 0);
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
key: 'A',
|
key: 'a',
|
||||||
fn: function fn() {
|
fn: function fn() {
|
||||||
svgCanvas.selectAllInCurrentLayer();
|
svgCanvas.selectAllInCurrentLayer();
|
||||||
}
|
}
|
||||||
|
}, {
|
||||||
|
key: modKey + 'a',
|
||||||
|
fn: function fn() {
|
||||||
|
svgCanvas.selectAllInCurrentLayer();
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
key: ['esc', false, false],
|
||||||
|
fn: function fn() {
|
||||||
|
svgCanvas.clearSelection();
|
||||||
|
}
|
||||||
}, // Standard shortcuts
|
}, // Standard shortcuts
|
||||||
{
|
{
|
||||||
key: modKey + 'z',
|
key: modKey + 'z',
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -5203,7 +5203,9 @@ editor.init = function () {
|
||||||
{key: ['alt+shift+down', true], fn () { svgCanvas.cloneSelectedElements(0, 10); }},
|
{key: ['alt+shift+down', true], fn () { svgCanvas.cloneSelectedElements(0, 10); }},
|
||||||
{key: ['alt+shift+left', true], fn () { svgCanvas.cloneSelectedElements(-10, 0); }},
|
{key: ['alt+shift+left', true], fn () { svgCanvas.cloneSelectedElements(-10, 0); }},
|
||||||
{key: ['alt+shift+right', true], fn () { svgCanvas.cloneSelectedElements(10, 0); }},
|
{key: ['alt+shift+right', true], fn () { svgCanvas.cloneSelectedElements(10, 0); }},
|
||||||
{key: 'A', fn () { svgCanvas.selectAllInCurrentLayer(); }},
|
{key: 'a', fn () { svgCanvas.selectAllInCurrentLayer(); }},
|
||||||
|
{key: modKey + 'a', fn () { svgCanvas.selectAllInCurrentLayer(); }},
|
||||||
|
{key: ['esc', false, false], fn () { svgCanvas.clearSelection(); }},
|
||||||
|
|
||||||
// Standard shortcuts
|
// Standard shortcuts
|
||||||
{key: modKey + 'z', fn: clickUndo},
|
{key: modKey + 'z', fn: clickUndo},
|
||||||
|
|
|
@ -33407,10 +33407,20 @@
|
||||||
svgCanvas.cloneSelectedElements(10, 0);
|
svgCanvas.cloneSelectedElements(10, 0);
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
key: 'A',
|
key: 'a',
|
||||||
fn: function fn() {
|
fn: function fn() {
|
||||||
svgCanvas.selectAllInCurrentLayer();
|
svgCanvas.selectAllInCurrentLayer();
|
||||||
}
|
}
|
||||||
|
}, {
|
||||||
|
key: modKey + 'a',
|
||||||
|
fn: function fn() {
|
||||||
|
svgCanvas.selectAllInCurrentLayer();
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
key: ['esc', false, false],
|
||||||
|
fn: function fn() {
|
||||||
|
svgCanvas.clearSelection();
|
||||||
|
}
|
||||||
}, // Standard shortcuts
|
}, // Standard shortcuts
|
||||||
{
|
{
|
||||||
key: modKey + 'z',
|
key: modKey + 'z',
|
||||||
|
|
|
@ -33407,10 +33407,20 @@
|
||||||
svgCanvas.cloneSelectedElements(10, 0);
|
svgCanvas.cloneSelectedElements(10, 0);
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
key: 'A',
|
key: 'a',
|
||||||
fn: function fn() {
|
fn: function fn() {
|
||||||
svgCanvas.selectAllInCurrentLayer();
|
svgCanvas.selectAllInCurrentLayer();
|
||||||
}
|
}
|
||||||
|
}, {
|
||||||
|
key: modKey + 'a',
|
||||||
|
fn: function fn() {
|
||||||
|
svgCanvas.selectAllInCurrentLayer();
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
key: ['esc', false, false],
|
||||||
|
fn: function fn() {
|
||||||
|
svgCanvas.clearSelection();
|
||||||
|
}
|
||||||
}, // Standard shortcuts
|
}, // Standard shortcuts
|
||||||
{
|
{
|
||||||
key: modKey + 'z',
|
key: modKey + 'z',
|
||||||
|
|
Loading…
Reference in New Issue