Skip to content

Commit

Permalink
Merge pull request #119 from gyorokpeter/focus
Browse files Browse the repository at this point in the history
improve UX related to search box focus
  • Loading branch information
gyorokpeter authored Jun 11, 2022
2 parents e7ae1bd + 609611e commit b70d6c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/studio/ui/StudioPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -1464,6 +1464,7 @@ private void refreshEditor() {
lastQuery = null;
refreshTitle();
refreshActionState();
editor.getPane().getTextArea().requestFocus(); //without this, the search box would always get focus if visible
}

private void resultTabDragged(DragEvent event) {
Expand All @@ -1482,6 +1483,7 @@ public StudioPanel() {
allPanels.add(this);

tabbedEditors = new DraggableTabbedPane("Editor");
tabbedEditors.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_F,menuShortcutKeyMask), editorFindAction);
removeFocusChangeKeysForWindows(tabbedEditors);
ClosableTabbedPane.makeCloseable(tabbedEditors, index -> {
tabbedEditors.setSelectedIndex(index);
Expand Down

0 comments on commit b70d6c0

Please sign in to comment.