mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-12 23:20:25 +08:00
added cmd + backspace to clear input
This commit is contained in:
parent
16778fecf8
commit
3919cff086
1 changed files with 2 additions and 0 deletions
|
@ -4649,6 +4649,8 @@ function handleBackspace(event) {
|
|||
if (addspace) {
|
||||
currentInput += " ";
|
||||
}
|
||||
} else if(event.metaKey){
|
||||
currentInput = "";
|
||||
} else {
|
||||
currentInput = currentInput.substring(0, currentInput.length - 1);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue