added key def replace helper function updateHTMLKeyDoc(..) to keyboead.js...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2014-01-18 05:57:41 +04:00
parent 8ab6300ef5
commit 57e922c59c

View File

@ -720,6 +720,20 @@ function getKeysByDocHTML(doc, help, combine_sections){
}
// Update key definitions...
//
// NOTE: this does not support multiple sections...
function updateHTMLKeyDoc(help, root){
root = root == null ? $('body') : root
return root.find('.key-doc').each(function(i, e){
e = $(e)
var doc = e.find('.doc')
var keys = $(getKeysByDocHTML(doc.html(), help)).find('.keys')
e.find('.keys').html(keys.html())
})
}
/**********************************************************************
* Key binding editor...