Skip to content
Snippets Groups Projects
Commit 83d4e89e authored by deuce's avatar deuce
Browse files

When using hotkeys, echo them, and do CRLF if necessary.

parent 53b83c98
No related branches found
No related tags found
No related merge requests found
// TODO: Auto-pause stuff...
js.load_path_list.unshift(js.exec_dir+"dorkit/");
js.on_exit("js.load_path_list.shift()");
if (typeof(system) !== 'undefined') {
......@@ -565,8 +567,13 @@ var dk = {
return str;
}
key = this.getkey();
if (opt.hotkeys !== undefined && str.length === 0 && opt.hotkeys.indexOf(key) !== -1)
if (opt.hotkeys !== undefined && str.length === 0 && opt.hotkeys.indexOf(key) !== -1) {
if (ascii(key) >= 32)
this.print(key);
if (opt.crlf)
this.println('');
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