mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-19 03:49:12 +00:00
MacOS Command key accessibility (#354)
* MacOS Command key accessibility * MacOS Command key accessibility * Fixed spotless violation build error * Fixed RMENU key to RMETA as CTRL on MacOS
This commit is contained in:
1 parent
89cc203875
commit
9df6ab0232
2 files changed
+12
-2
No files matched your search
@@ -251,6 +251,9 @@ public class NEIClientUtils extends NEIServerUtils {
|
||||
}
|
||||
|
||||
public static boolean controlKey() {
|
||||
if (Minecraft.isRunningOnMac) {
|
||||
return Keyboard.isKeyDown(Keyboard.KEY_LMETA) || Keyboard.isKeyDown(Keyboard.KEY_RMETA);
|
||||
}
|
||||
return Keyboard.isKeyDown(Keyboard.KEY_LCONTROL) || Keyboard.isKeyDown(Keyboard.KEY_RCONTROL);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user