Skip to content

Commit 278a639

Browse files
committed
Minor bug fix
1 parent ef1850d commit 278a639

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

client/utils/codemirror-search.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,13 +228,15 @@ function persistentDialog(cm, text, deflt, onEnter, replaceOpened, onKeyDown) {
228228
if (match) {
229229
cm.setSelection(cursor.from(), cursor.to());
230230
doReplace(match, cursor, query, withText);
231+
doReplaceButton.focus();
231232
}
232233
} else {
233234
startSearch(cm, state, searchField.value);
234235
state.replaceStarted = true;
235236
cm.focus();
236237
CodeMirror.commands.findNext(cm);
237238
searchField.blur();
239+
doReplaceButton.focus();
238240
}
239241
})
240242

0 commit comments

Comments
 (0)