From 93537b330aa5e262d097886386e52526eb879ac4 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Thu, 2 May 2024 14:59:02 +0900 Subject: [PATCH] =?UTF-8?q?=ED=8E=98=EC=9D=B8=ED=8A=B8=EC=9B=B9=20?= =?UTF-8?q?=EB=8B=A8=EC=B6=95=ED=82=A4=20=EC=98=A4=EB=A5=98=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/libs/fims/paintweb/guiScript.js | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) 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