aboutsummaryrefslogtreecommitdiff
path: root/src/compat/yacl/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/compat/yacl/java')
-rw-r--r--src/compat/yacl/java/KeybindingController.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compat/yacl/java/KeybindingController.kt b/src/compat/yacl/java/KeybindingController.kt
index e9bd500..c303da2 100644
--- a/src/compat/yacl/java/KeybindingController.kt
+++ b/src/compat/yacl/java/KeybindingController.kt
@@ -75,8 +75,8 @@ class KeybindingWidget(
}
override fun mouseClicked(mouseX: Double, mouseY: Double, button: Int): Boolean {
- if (button == 0 && isHovered) {
- sm.onClick()
+ if (isHovered) {
+ sm.onClick(button)
return true
}
return super.mouseClicked(mouseX, mouseY, button)