mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 03:32:51 -06:00
Access keys for input fields in minibar and feedback form
This commit is contained in:
@@ -23,12 +23,12 @@
|
|||||||
<p><input type=hidden name="to"> <span class=field id="to">...</span> translation:
|
<p><input type=hidden name="to"> <span class=field id="to">...</span> translation:
|
||||||
<input type=hidden name="translation"> <span class=field id=translation>...</span>
|
<input type=hidden name="translation"> <span class=field id=translation>...</span>
|
||||||
|
|
||||||
<p>Suggest a better translation:
|
<p><label accesskey="S">Suggest a better translation:
|
||||||
<textarea rows=3 name="improvement"></textarea>
|
<textarea rows=3 name="improvement"></textarea></label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p>Comments:
|
<p><label accesskey="C">Comments:
|
||||||
<br><textarea rows=5 name="comment"></textarea>
|
<br><textarea rows=5 name="comment"></textarea></label>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<input type=submit value="Submit Feedback">
|
<input type=submit value="Submit Feedback">
|
||||||
|
|||||||
@@ -71,7 +71,8 @@ var server = {
|
|||||||
|
|
||||||
/* --- Initialisation ------------------------------------------------------- */
|
/* --- Initialisation ------------------------------------------------------- */
|
||||||
|
|
||||||
function start_minibar(opts) { // typically called when the HTML document is loaded
|
function start_minibar(opts) {
|
||||||
|
// Typically called when the HTML document is loaded
|
||||||
if(opts) for(var o in opts) options[o]=opts[o];
|
if(opts) for(var o in opts) options[o]=opts[o];
|
||||||
var surface=div_id("surface");
|
var surface=div_id("surface");
|
||||||
var extra=div_id("extra");
|
var extra=div_id("extra");
|
||||||
@@ -209,7 +210,7 @@ function add_typed_input(surface) {
|
|||||||
inp=surface.typed;
|
inp=surface.typed;
|
||||||
else {
|
else {
|
||||||
var inp=empty("input","type","text");
|
var inp=empty("input","type","text");
|
||||||
//inp.setAttribute("onclick","return false;"); // Don't propagate click to surface
|
inp.setAttribute("accesskey","t");
|
||||||
inp.setAttribute("onkeyup","complete_typed(this)");
|
inp.setAttribute("onkeyup","complete_typed(this)");
|
||||||
inp.setAttribute("onchange","finish_typed(this)");
|
inp.setAttribute("onchange","finish_typed(this)");
|
||||||
surface.appendChild(inp);
|
surface.appendChild(inp);
|
||||||
|
|||||||
Reference in New Issue
Block a user