페인트웹 단축키 오류 수정

main
이범준 7 months ago
parent 9d2e147efc
commit 93537b330a

@ -1380,17 +1380,18 @@ pwlib.gui = function (app) {
* *
* @see PaintWeb#commandRegister to register a new command. * @see PaintWeb#commandRegister to register a new command.
*/ */
this.commandClick = function (ev) { this.commandClick = function (ev) {
var cmd = this.parentNode.getAttribute('data-pwCommand'); var cmd = this.parentNode.getAttribute('data-pwCommand');
if (cmd && cmd in app.commands) { if (cmd && cmd in app.commands) {
app.commands[cmd].call(this, ev); app.commands[cmd].call(this, ev);
} }
ev.preventDefault(); ev.preventDefault();
try { try {
this.focus(); $(this).blur();
} catch (err) { } $(config.guiPlaceholder).focus();
}; } catch (err) { }
};
/** /**
* The <code>commandRegister</code> application event handler. GUI elements * The <code>commandRegister</code> application event handler. GUI elements

Loading…
Cancel
Save