mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-29 03:20:46 +08:00
fixed simple popup reacting to shift enter
This commit is contained in:
parent
bdccd42e44
commit
cd4521b268
1 changed files with 1 additions and 1 deletions
|
|
@ -154,7 +154,7 @@ $(document).on("keyup", "#simplePopupWrapper input", (e) => {
|
|||
});
|
||||
|
||||
$(document).on("keyup", (e) => {
|
||||
if (e.key === "Enter") {
|
||||
if (e.key === "Enter" && !e.shiftKey) {
|
||||
if (!$("#simplePopupWrapper").hasClass("hidden")) {
|
||||
let id = $("#simplePopup").attr("popupId");
|
||||
list[id].buttons.forEach((button, index) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue