Meta key now OS dependant
authorDarren <darren@darrenwhitlen.com>
Sat, 29 Oct 2011 23:34:54 +0000 (00:34 +0100)
committerDarren <darren@darrenwhitlen.com>
Sat, 29 Oct 2011 23:34:54 +0000 (00:34 +0100)
client/js/front.ui.js

index bd4a017e0f625fdac425e0cd303d260c9df4cc10..f7159c45880c87d1789bec9498feaa76a6fb77f7 100644 (file)
@@ -51,8 +51,12 @@ kiwi.front.ui = {
         $('#kiwi_msginput').bind('keydown', function (e) {\r
             var windows, meta, num, msg, data, self;\r
             windows = $('#windows');\r
-            //var meta = e.altKey;\r
-            meta = e.ctrlKey;\r
+\r
+            if (navigator.appVersion.indexOf("Mac") != -1) {\r
+                meta = e.ctrlKey;\r
+            } else {\r
+                meta = e.altKey;\r
+            }\r
 \r
             if (e.which !== 9) {\r
                 tabcomplete.active = false;\r