diff --git a/src/main/webapp/resources/libs/fims/paintweb/guiScript.js b/src/main/webapp/resources/libs/fims/paintweb/guiScript.js index f2631e5f..3d98be78 100644 --- a/src/main/webapp/resources/libs/fims/paintweb/guiScript.js +++ b/src/main/webapp/resources/libs/fims/paintweb/guiScript.js @@ -1380,17 +1380,18 @@ pwlib.gui = function (app) { * * @see PaintWeb#commandRegister to register a new command. */ - this.commandClick = function (ev) { - var cmd = this.parentNode.getAttribute('data-pwCommand'); - if (cmd && cmd in app.commands) { - app.commands[cmd].call(this, ev); - } - ev.preventDefault(); - - try { - this.focus(); - } catch (err) { } - }; + this.commandClick = function (ev) { + var cmd = this.parentNode.getAttribute('data-pwCommand'); + if (cmd && cmd in app.commands) { + app.commands[cmd].call(this, ev); + } + ev.preventDefault(); + + try { + $(this).blur(); + $(config.guiPlaceholder).focus(); + } catch (err) { } + }; /** * The commandRegister application event handler. GUI elements