diff options
| author | CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> | 2023-10-12 22:31:49 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-12 13:31:49 +0200 |
| commit | db0cd17c7019c072a5043ae8d0dca8ce6459fb32 (patch) | |
| tree | 3e8a33b6d434d02d637e596eecd707d4e8c17495 /src/main/java/at/hannibal2/skyhanni/features/chat | |
| parent | d4084e697899f6dc3ceb87b4d229e0fe3819440a (diff) | |
| download | skyhanni-db0cd17c7019c072a5043ae8d0dca8ce6459fb32.tar.gz skyhanni-db0cd17c7019c072a5043ae8d0dca8ce6459fb32.tar.bz2 skyhanni-db0cd17c7019c072a5043ae8d0dca8ce6459fb32.zip | |
Fix + Backend: Made mouse buttons work as key binds (#560)
Fix + Backend: Made mouse buttons work as key binds #560
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/chat')
| -rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilterGui.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilterGui.kt b/src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilterGui.kt index b12802f3b..4d08c371f 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilterGui.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilterGui.kt @@ -1,6 +1,7 @@ package at.hannibal2.skyhanni.features.chat import at.hannibal2.skyhanni.data.ChatManager +import at.hannibal2.skyhanni.utils.KeyboardUtils import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.OSUtils import io.github.moulberry.moulconfig.internal.GlScissorStack @@ -58,7 +59,7 @@ class ChatFilterGui(private val history: List<ChatManager.MessageFilteringResult ) } if (mouseX in 0..w && mouseY in 0..(size * 10) && (isMouseButtonDown && !wasMouseButtonDown)) { - if (LorenzUtils.isShiftKeyDown()) { + if (KeyboardUtils.isShiftKeyDown()) { OSUtils.copyToClipboard(IChatComponent.Serializer.componentToJson(msg.message)) LorenzUtils.chat("Copied structured chat line to clipboard") } else { |
