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) {
var KeyID = event.keyCode;
switch(KeyID)
{
case 8: // backspace
deleteSelectedBox();
break;
case 46: // delete
deleteSelectedBox();
break;
case 68:
// toggleControl(false);
default:
break;
case 29: // linux l ctrl
toggleControl(false);
break;
case 97: // linux r ctrl
toggleControl(false);
break;
case 8: // backspace
deleteSelectedBox();
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