mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
Test fixes
This commit is contained in:
parent
9877d30d94
commit
7cb190620c
6 changed files with 46 additions and 37 deletions
|
@ -42,14 +42,22 @@ public class KeyEntryPanel extends JPanel {
|
|||
|
||||
keyEntryField = new KeyEntryTextField(columns, listener);
|
||||
clearButton = new EmptyBorderButton(Icons.DELETE_ICON);
|
||||
clearButton.setToolTipText("Clear the current key binding");
|
||||
clearButton.addActionListener(e -> keyEntryField.clearField());
|
||||
clearButton.setName("Clear Key Binding");
|
||||
clearButton.addActionListener(e -> keyEntryField.clearKeyStroke());
|
||||
|
||||
add(keyEntryField);
|
||||
add(Box.createHorizontalStrut(2));
|
||||
add(clearButton);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the text field used by this class
|
||||
* @return the text field
|
||||
*/
|
||||
public JTextField getTextField() {
|
||||
return keyEntryField;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the key stroke on this panel
|
||||
* @param ks the key stroke
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue