Skip to content
Snippets Groups Projects
Commit 512f6a51 authored by deuce's avatar deuce
Browse files

If opt.password is true, echo password_char instead of the hotkey.

parent 83d4e89e
No related branches found
No related tags found
No related merge requests found
......@@ -568,8 +568,12 @@ var dk = {
}
key = this.getkey();
if (opt.hotkeys !== undefined && str.length === 0 && opt.hotkeys.indexOf(key) !== -1) {
if (ascii(key) >= 32)
this.print(key);
if (ascii(key) >= 32) {
if (opt.password)
this.print(opt.password_char);
else
this.print(key);
}
if (opt.crlf)
this.println('');
return key;
......
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