runelite-client: Add a equals implementation to Keybind

Without this certain key combos that java doesn't support (fn+fkeys on laptops) are supposed to be hit by the equals check, but ofc they weren't
This commit is contained in:
Max Weber
2018-06-26 05:35:59 -06:00
parent 954d7fe692
commit 8f1a345d96

View File

@@ -28,6 +28,7 @@ import com.google.common.collect.BiMap;
import com.google.common.collect.ImmutableBiMap;
import java.awt.event.InputEvent;
import java.awt.event.KeyEvent;
import lombok.EqualsAndHashCode;
import lombok.Getter;
/**
@@ -35,6 +36,7 @@ import lombok.Getter;
* and an optional non-modifier key
*/
@Getter
@EqualsAndHashCode
public class Keybind
{
private static final BiMap<Integer, Integer> modifierToKeyCode = new ImmutableBiMap.Builder<Integer, Integer>()