From 83edd78a119a7a0f7ca1cb27296ea579b2b6d014 Mon Sep 17 00:00:00 2001 From: Alexis Deveria Date: Mon, 31 Aug 2009 19:15:32 +0000 Subject: [PATCH] Fixed Issue 148: Object navigation is lost after a new opacity is chosen in top toolbar git-svn-id: http://svg-edit.googlecode.com/svn/trunk@511 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svg-editor.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor/svg-editor.js b/editor/svg-editor.js index 01c747aa..82f45c76 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -272,6 +272,9 @@ function svg_edit_setup() { svgCanvas.setStrokeStyle(this.options[this.selectedIndex].value); }); + // Lose focus for select elements when changed (Allows keyboard shortcuts to work better) + $('select').change(function(){$(this).blur();}); + $('#group_opacity').change(function(){ svgCanvas.setOpacity(this.options[this.selectedIndex].value); });