diff --git a/ui/lib/keyboard.js b/ui/lib/keyboard.js
index 63e68b27..55474547 100755
--- a/ui/lib/keyboard.js
+++ b/ui/lib/keyboard.js
@@ -464,6 +464,37 @@ function buildKeybindingsHelp(keybindings){
return res
}
+
+// Build a basic HTML table with keyboard help...
+//
+//
+// The table will look like this:
+//
+//
+//
+//
+//
+// | SECTION TITLE |
+// |
+//
+// | SECTION DESCRIPTION |
+// |
+//
+//
+//
+// | KEYS |
+// | ACTION DESCRIPTION |
+// |
+//
+// ...
+//
+//
+//
+// NOTE: section are not separated in any way other than the element.
+// NOTE: the actual HTML is created by jQuery, so the table may get
+// slightly structurally changed, i.e. a | element will be
+// added etc.
+//
function buildKeybindingsHelpHTML(keybindings){
var doc = buildKeybindingsHelp(keybindings)
@@ -473,9 +504,12 @@ function buildKeybindingsHelpHTML(keybindings){
if(mode == 'doc'){
continue
}
+ // section head...
res += ' | ' + mode + ' |
\n'
mode = doc[mode]
- res += ' | '+ mode.doc + ' |
\n'
+ res += ' | '+ mode.doc + ' |
\n'
+
+ // keys...
for(var action in mode){
if(action == 'doc'){
continue