diff options
Diffstat (limited to 'src/compat/yacl/java')
| -rw-r--r-- | src/compat/yacl/java/KeybindingController.kt | 4 |
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) |
