From 2e041cf225637c19a82822747362c145fe8ed824 Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Thu, 3 Jun 2010 09:28:44 -0500 Subject: [PATCH] Fix Alt keysym. From kevinychan/vnc-html5 ebfffdc36. --- include/canvas.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/canvas.js b/include/canvas.js index 2213b604..279c5e6c 100644 --- a/include/canvas.js +++ b/include/canvas.js @@ -311,7 +311,8 @@ getKeysym: function(e) { case 123 : keysym = 0xFFC9; break; // F12 case 16 : keysym = 0xFFE1; break; // SHIFT case 17 : keysym = 0xFFE3; break; // CONTROL - case 18 : keysym = 0xFFE7; break; // ALT + //case 18 : keysym = 0xFFE7; break; // Left Meta (Mac Option) + case 18 : keysym = 0xFFE9; break; // Left ALT (Mac Command) default : keysym = evt.keyCode; break; }