Skip to content
This repository has been archived by the owner on Apr 15, 2021. It is now read-only.

Commit

Permalink
Merge pull request #3 from dcchambers/fix-command-bar-focus
Browse files Browse the repository at this point in the history
Fix command bar focus
  • Loading branch information
dcchambers authored Mar 14, 2020
2 parents 926daa8 + d15ebbe commit 59fe9b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content_scripts/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,7 @@ Command.show = function(search, value, complete) {
Status.hide();
}
this.bar.style.display = 'inline-block';
setTimeout(function() {
var timerId = setInterval(function() {
this.input.focus();
if (complete !== null) {
this.complete(value);
Expand All @@ -954,7 +954,7 @@ Command.show = function(search, value, complete) {
// TODO: figure out why a842dd6 and fix for #527 are necessary
// document.getSelection().collapseToEnd();
document.getSelection().modify('move', 'right', 'lineboundary');

clearInterval(timerId);
}
// End temp fix

Expand Down

0 comments on commit 59fe9b8

Please sign in to comment.