Skip to content
Snippets Groups Projects
Commit 0ce6c284 authored by deuce's avatar deuce
Browse files

Add hotkeys property to getstr() options object.

parent 8ea79574
No related branches found
No related tags found
No related merge requests found
......@@ -493,6 +493,7 @@ var dk = {
len:80, // Max length and length of input box
max:undefined, // Max value for decimal and integer
min:undefined, // Min value for decimal and integer
hotkeys:undefined // Hotkeys... if a char in this string is typed as the first char, returns that char immediately.
},
getstr:function(in_opts) {
var i;
......@@ -564,6 +565,8 @@ var dk = {
return str;
}
key = this.getkey();
if (opt.hotkeys !== undefined && str.length === 0 && opt.hotkeys.indexOf(key) !== -1)
return key;
switch(key) {
case 'KEY_HOME':
if (opt.select) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment