Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // KeyTypedRepeatTask doesn't stop when the widget is disabled, and when you reactivate it, it continues writing. I've just added
- // the cancel call method.
- ////////////////////////////////////////////////
- @Override
- public void setDisabled (boolean disabled) {
- this.disabled = disabled;
- if (disabled) {
- FocusManager.getFocus();
- keyTypedRepeatTask.cancel();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement