Commit 4a88d603 authored by Bernie Wang's avatar Bernie Wang
Browse files

added switch cases for linux ctrl keys

parent d5ba815b
...@@ -206,16 +206,22 @@ function onKeyDown(event) { ...@@ -206,16 +206,22 @@ function onKeyDown(event) {
var KeyID = event.keyCode; var KeyID = event.keyCode;
switch(KeyID) switch(KeyID)
{ {
case 8: // backspace case 29: // linux l ctrl
deleteSelectedBox(); toggleControl(false);
break; break;
case 46: // delete case 97: // linux r ctrl
deleteSelectedBox(); toggleControl(false);
break; break;
case 68: case 8: // backspace
// toggleControl(false); deleteSelectedBox();
default: break;
break; case 46: // delete
deleteSelectedBox();
break;
case 68:
// toggleControl(false);
default:
break;
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment