mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-20 04:26:28 +08:00
parent
bf3ad6be2a
commit
b0bc26c90c
2 changed files with 10 additions and 12 deletions
|
@ -175,6 +175,16 @@ $(document).keydown((event) => {
|
|||
}
|
||||
});
|
||||
|
||||
$(document).on("keypress", "#practiseWordsButton", (event) => {
|
||||
if (event.keyCode == 13) {
|
||||
showPopup(true);
|
||||
}
|
||||
});
|
||||
|
||||
$(document.body).on("click", "#practiseWordsButton", () => {
|
||||
showPopup();
|
||||
});
|
||||
|
||||
$(document).ready(() => {
|
||||
UpdateConfig.subscribeToEvent((eventKey) => {
|
||||
if (eventKey === "mode") resetBefore();
|
||||
|
|
|
@ -7,7 +7,6 @@ import * as TestInput from "./test-input";
|
|||
import * as CustomText from "./custom-text";
|
||||
import * as Caret from "./caret";
|
||||
import * as OutOfFocus from "./out-of-focus";
|
||||
import * as PractiseWords from "./practise-words";
|
||||
import * as Replay from "./replay";
|
||||
import * as Misc from "../misc";
|
||||
import * as QuoteRatePopup from "../popups/quote-rate-popup";
|
||||
|
@ -873,17 +872,6 @@ $("#wordsInput").on("focusout", () => {
|
|||
Caret.hide();
|
||||
});
|
||||
|
||||
$(document).on("keypress", "#practiseWordsButton", (event) => {
|
||||
if (event.keyCode == 13) {
|
||||
PractiseWords.showPopup(true);
|
||||
}
|
||||
});
|
||||
|
||||
$(document.body).on("click", "#practiseWordsButton", () => {
|
||||
// PractiseWords.init();
|
||||
PractiseWords.showPopup();
|
||||
});
|
||||
|
||||
$(document).on("keypress", "#showWordHistoryButton", (event) => {
|
||||
if (event.keyCode == 13) {
|
||||
toggleResultWords();
|
||||
|
|
Loading…
Add table
Reference in a new issue