Skip to content

Commit

Permalink
better keyboard navigation. issue #2304
Browse files Browse the repository at this point in the history
  • Loading branch information
j-dimension committed Feb 8, 2024
1 parent 4e91cb9 commit c01b608
Showing 1 changed file with 12 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1080,56 +1080,38 @@ private void taDescriptionKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:e
}//GEN-LAST:event_taDescriptionKeyPressed

private void txtEarningsFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_txtEarningsFocusGained
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
txtEarnings.selectAll();
}
SwingUtilities.invokeLater(() -> {
txtEarnings.selectAll();
});
}//GEN-LAST:event_txtEarningsFocusGained

private void txtSpendingsFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_txtSpendingsFocusGained
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
txtSpendings.selectAll();
}
SwingUtilities.invokeLater(() -> {
txtSpendings.selectAll();
});
}//GEN-LAST:event_txtSpendingsFocusGained

private void txtEscrowInFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_txtEscrowInFocusGained
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
txtEscrowIn.selectAll();
}
SwingUtilities.invokeLater(() -> {
txtEscrowIn.selectAll();
});
}//GEN-LAST:event_txtEscrowInFocusGained

private void txtEscrowOutFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_txtEscrowOutFocusGained
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
txtEscrowOut.selectAll();
}
SwingUtilities.invokeLater(() -> {
txtEscrowOut.selectAll();
});
}//GEN-LAST:event_txtEscrowOutFocusGained

private void txtExpendituresInFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_txtExpendituresInFocusGained
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
txtExpendituresIn.selectAll();
}
SwingUtilities.invokeLater(() -> {
txtExpendituresIn.selectAll();
});
}//GEN-LAST:event_txtExpendituresInFocusGained

private void txtExpendituresOutFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_txtExpendituresOutFocusGained
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
txtExpendituresOut.selectAll();
}
SwingUtilities.invokeLater(() -> {
txtExpendituresOut.selectAll();
});
}//GEN-LAST:event_txtExpendituresOutFocusGained

Expand Down

0 comments on commit c01b608

Please sign in to comment.