Skip to content

Commit 6189e34

Browse files
committed
Added click to focus handler for ChangeMe dialog
1 parent 7fbc755 commit 6189e34

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Resources/changeme/flashdialog.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,12 @@ $(document).ready(function() {
472472

473473
$('.panel input[type="text"]').on('keydown keyup change input cut paste', function() {
474474
There.updateButtonState();
475+
}).on('click', function() {
476+
if ($(this).is(':hidden') || $(this).is(':focus')) {
477+
return;
478+
}
479+
There.fsCommand('getKeyboardFocus');
480+
$(this).focus();
475481
});
476482

477483
$('.modes[data-id="savelooksetchangeme"] .panel input[type="text"]').on('keypress', function(event) {

0 commit comments

Comments
 (0)