From 1806b55195448340df99f0b03d3930675b3591a4 Mon Sep 17 00:00:00 2001 From: sylvain <8940871+punx120@users.noreply.github.com> Date: Fri, 18 Mar 2022 14:59:05 -0400 Subject: [PATCH] SearchPanel - Add keyboard mnemonic --- src/main/studio/ui/SearchPanel.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/studio/ui/SearchPanel.java b/src/main/studio/ui/SearchPanel.java index 4759df09..c9f251d3 100644 --- a/src/main/studio/ui/SearchPanel.java +++ b/src/main/studio/ui/SearchPanel.java @@ -60,9 +60,9 @@ public SearchPanel(EditorPane editorPane) { Action findAction = UserAction.create("Find", e -> find(true)); Action findBackAction = UserAction.create("Find Back", e -> find(false)); Action markAllAction = UserAction.create("Mark All", e -> markAll()); - Action replaceAction = UserAction.create("Replace", e -> replace()); - Action replaceAllAction = UserAction.create("Replace All", e -> replaceAll()); - Action closeAction = UserAction.create("Close", e -> close()); + Action replaceAction = UserAction.create("Replace", "Replace", KeyEvent.VK_R, e -> replace()); + Action replaceAllAction = UserAction.create("Replace All", "Replace All", KeyEvent.VK_A, e -> replaceAll()); + Action closeAction = UserAction.create("Close", "Close", KeyEvent.VK_C, e -> close()); JButton btnFind = new JButton(findAction); JButton btnFindBack = new JButton(findBackAction);