mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
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:
parent
8ab6300ef5
commit
57e922c59c
@ -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...
|
* Key binding editor...
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user