multiselect text bug fix

master
Mark MacKay 2021-01-15 13:37:59 -06:00
parent 428913dadd
commit 36ab3d9ba6
2 changed files with 3 additions and 3 deletions

View File

@ -654,7 +654,6 @@ window.methodDraw = function() {
$('#font_size').val(elem.getAttribute("font-size"));
$('#text').val(elem.textContent);
$('#preview_font').text(cleanFontFamily).css('font-family', font_family);
$('#text').focus().select();
} // text
else if(el_name == 'image') {
setImageURL(svgCanvas.getHref(elem));
@ -2710,4 +2709,4 @@ window.methodDraw = function() {
}(jQuery);
// Run init once DOM is loaded
$(methodDraw.init);
$(methodDraw.init);

View File

@ -3336,6 +3336,7 @@ var getMouseTarget = this.getMouseTarget = function(evt) {
break;
case "text":
keep = true;
selectOnly([element]);
textActions.start(element);
break;
case "path":
@ -3848,7 +3849,6 @@ var textActions = canvas.textActions = function() {
}
$(textinput).blur();
curtext = false;
},
setInputElem: function(elem) {
textinput = elem;
@ -8562,6 +8562,7 @@ this.moveUpDownSelected = function(dir) {
this.moveSelectedElements = function(dx, dy, undoable) {
// if undoable is not sent, default to true
// if single values, scale them to the zoom
// textActions.toSelectMode();
if (dx.constructor != Array) {
dx /= current_zoom;
dy /= current_zoom;