git://git.nikiroo.be
/
nikiroo-utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Include the ResourceBundle files into the build
[nikiroo-utils.git]
/
src
/
jexer
/
TButton.java
diff --git
a/src/jexer/TButton.java
b/src/jexer/TButton.java
index 1c995c47a4375d69d4f735b43b49dec69b73aa67..255dd990738d369490a288d993dd24dd24890c49 100644
(file)
--- a/
src/jexer/TButton.java
+++ b/
src/jexer/TButton.java
@@
-80,6
+80,7
@@
public final class TButton extends TWidget {
public void dispatch() {
if (action != null) {
action.DO();
public void dispatch() {
if (action != null) {
action.DO();
+ inButtonPress = false;
}
}
}
}
@@
-215,11
+216,8
@@
public final class TButton extends TWidget {
this.mouse = mouse;
if (inButtonPress && mouse.isMouse1()) {
this.mouse = mouse;
if (inButtonPress && mouse.isMouse1()) {
- inButtonPress = false;
// Dispatch the event
// Dispatch the event
- if (action != null) {
- action.DO();
- }
+ dispatch();
}
}
}
}
@@
-249,9
+247,7
@@
public final class TButton extends TWidget {
|| keypress.equals(kbSpace)
) {
// Dispatch
|| keypress.equals(kbSpace)
) {
// Dispatch
- if (action != null) {
- action.DO();
- }
+ dispatch();
return;
}
return;
}