Forráskód Böngészése

Support `Command` / metaKey for keyboard shortcut (#266)

Cameron Taylor 1 hónapja
szülő
commit
fd78898bb8
1 módosított fájl, 3 hozzáadás és 1 törlés
  1. 3 1
      hide/ui/Keys.hx

+ 3 - 1
hide/ui/Keys.hx

@@ -53,6 +53,8 @@ class Keys {
 			parts.push("Alt");
 		if( e.ctrlKey )
 			parts.push("Ctrl");
+		if( e.metaKey )
+			parts.push("Command");
 		if( e.shiftKey )
 			parts.push("Shift");
 		if( e.keyCode == hxd.Key.ALT || e.keyCode == hxd.Key.SHIFT || e.keyCode == hxd.Key.CTRL ) {
@@ -150,4 +152,4 @@ class Keys {
 		return ret;
 	}
 
-}
+}