mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
support.js: create buttons with access keys
This commit is contained in:
@@ -130,10 +130,11 @@ function tr(cells) {
|
||||
return tr;
|
||||
}
|
||||
|
||||
function button(label,action) {
|
||||
function button(label,action,key) {
|
||||
var el=empty("input","type","button");
|
||||
el.setAttribute("value",label);
|
||||
el.setAttribute("onclick",action);
|
||||
if(key) el.setAttribute("accesskey",key);
|
||||
return el;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user