Skip to content

Commit

Permalink
Messy fix for adobe#5262
Browse files Browse the repository at this point in the history
The dialog can be dismissed, but it's not as nice as it should.
But it does it's job because you can't do anything else than typing in the input field after clicking a navigator button.
  • Loading branch information
SAplayer committed Sep 23, 2013
1 parent 4aef66b commit 2e83f7d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/search/FindReplace.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ define(function (require, exports, module) {
} else if (e.target.id === "find-prev") {
doSearch(editor, true);
}
$(getDialogTextField()).focus();

This comment has been minimized.

Copy link
@rajeshsegu

rajeshsegu Sep 23, 2013

@SAplayer Since getDialogTextField() is returning a jQuery instance of the input field, All we need is

getDialogTextField().focus()

Can you please make the necessary change. Thanks in advance.

});

var $input = getDialogTextField();
Expand Down

0 comments on commit 2e83f7d

Please sign in to comment.