mirror of
https://github.com/xvvvyz/tilde.git
synced 2026-03-11 14:44:24 +00:00
? toggles the help again
This commit is contained in:
parent
23a46b6b9d
commit
674bf7a47d
1 changed files with 6 additions and 1 deletions
|
|
@ -569,6 +569,10 @@
|
|||
});
|
||||
}
|
||||
|
||||
_clearInput() {
|
||||
this._inputEl.value = '';
|
||||
}
|
||||
|
||||
_handleKeypress(event) {
|
||||
const newChar = String.fromCharCode(event.which);
|
||||
const isEnterKey = event.which !== 13;
|
||||
|
|
@ -613,7 +617,8 @@
|
|||
if (event) event.preventDefault();
|
||||
const query = this._inputEl.value.trim();
|
||||
|
||||
if (!query) {
|
||||
if (!query || query === '?') {
|
||||
this._clearInput();
|
||||
this._help.toggle();
|
||||
} else {
|
||||
this._history.addItem(query);
|
||||
|
|
|
|||
Loading…
Reference in a new issue