Fix Issue 412: Press 'A' to select all elements in the current layer

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1312 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Jeff Schiller
2010-01-31 20:17:50 +00:00
parent 3e94e85e31
commit 31ec4fec91
2 changed files with 19 additions and 6 deletions

View File

@@ -1275,12 +1275,12 @@ function svg_edit_setup() {
var selectNext = function() {
svgCanvas.cycleElement(1);
}
};
var selectPrev = function() {
svgCanvas.cycleElement(0);
}
};
var rotateSelected = function(cw) {
if (selectedElement == null || multiselected) return;
var step = 5;
@@ -1288,7 +1288,7 @@ function svg_edit_setup() {
var new_angle = $('#angle').val()*1 + step;
svgCanvas.setRotationAngle(new_angle);
updateContextPanel();
}
};
var clickClear = function(){
$.confirm(uiStrings.QwantToClear, function(ok) {
@@ -2330,7 +2330,8 @@ function svg_edit_setup() {
{key: ['up', true], fn: function(){moveSelected(0,-1);}},
{key: ['down', true], fn: function(){moveSelected(0,1);}},
{key: ['left', true], fn: function(){moveSelected(-1,0);}},
{key: ['right', true], fn: function(){moveSelected(1,0);}}
{key: ['right', true], fn: function(){moveSelected(1,0);}},
{key: 'A', fn: function(){svgCanvas.selectAllInCurrentLayer();}}
];
// Tooltips not directly associated with a single function