Added the following features: now starts with focus on the input pane, shortcut ctrl+T to translate, and after translating focus is automatically set on the first element.
This commit is contained in:
parent
58819cf43d
commit
efec654ee8
5 changed files with 58 additions and 45 deletions
|
@ -116,6 +116,11 @@ public class SimpleScannerPanel extends ScannerPanel implements ItemListener
|
|||
add(cardPanel, BorderLayout.CENTER);
|
||||
}
|
||||
|
||||
public void setFocusToInput()
|
||||
{
|
||||
txtInput.requestFocusInWindow();
|
||||
}
|
||||
|
||||
public void itemStateChanged(ItemEvent e)
|
||||
{
|
||||
int n = listDefs.getSelectedIndex();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue