diff --git a/source/tools/jsdebugger/index.html b/source/tools/jsdebugger/index.html index 14bd0c4526..81d36d5480 100644 --- a/source/tools/jsdebugger/index.html +++ b/source/tools/jsdebugger/index.html @@ -30,13 +30,13 @@ -
- Step
- Step into
- Step out
- Continue
- Continue thread
- Break
+
+ Step (F5)
+ Step into (F6)
+ Step out (F7)
+ Continue (F8)
+ Continue thread (F9)
+ Break (F10)
diff --git a/source/tools/jsdebugger/js/src/debugger.js b/source/tools/jsdebugger/js/src/debugger.js index 9bfabe32be..7e4d3415ac 100644 --- a/source/tools/jsdebugger/js/src/debugger.js +++ b/source/tools/jsdebugger/js/src/debugger.js @@ -580,6 +580,14 @@ function addLocalValues(parent, obj) $(document).ready(function () { var debugUpdate = 150; + var keydownToClick = { //calls the appropriate click handler on a keydown + 116: $('a#step'), + 117: $('a#step_into'), + 118: $('a#step_out'), + 119: $('a#continue'), + 120: $('a#continue_thread'), + 121: $('a#break'), + }; $('a#step').click(function () { @@ -623,6 +631,13 @@ $(document).ready(function () return false; }); + $(document).bind('keydown', function(e) { + if (keydownToClick[e.which] != undefined) { + keydownToClick[e.which].click(); + return false; + } + }); + $('#threads').datagrid( { onDblClickRow: function(rowIndex, rowData) {