mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 09:10:48 +00:00
#1200 Select search result with enter ke from the list, hungarian debug message removed
This commit is contained in:
@@ -22,6 +22,8 @@ import java.awt.Dimension;
|
||||
import java.awt.FlowLayout;
|
||||
import java.awt.Window;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.KeyAdapter;
|
||||
import java.awt.event.KeyEvent;
|
||||
import java.awt.event.MouseAdapter;
|
||||
import java.awt.event.MouseEvent;
|
||||
import java.util.List;
|
||||
@@ -63,6 +65,16 @@ public class SearchResultsDialog<E> extends AppDialog {
|
||||
buttonsPanel.setLayout(new FlowLayout());
|
||||
buttonsPanel.add(gotoButton);
|
||||
buttonsPanel.add(closeButton);
|
||||
resultsList.addKeyListener(new KeyAdapter() {
|
||||
|
||||
@Override
|
||||
public void keyReleased(KeyEvent e) {
|
||||
if (e.getKeyCode() == KeyEvent.VK_ENTER) {
|
||||
gotoElement();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
resultsList.addMouseListener(new MouseAdapter() {
|
||||
|
||||
@Override
|
||||
@@ -71,7 +83,6 @@ public class SearchResultsDialog<E> extends AppDialog {
|
||||
gotoElement();
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
cnt.setLayout(new BorderLayout());
|
||||
|
||||
Reference in New Issue
Block a user