diff --git a/frontends/etiquette_flask/static/js/common.js b/frontends/etiquette_flask/static/js/common.js index 50b394a..c520048 100644 --- a/frontends/etiquette_flask/static/js/common.js +++ b/frontends/etiquette_flask/static/js/common.js @@ -1,3 +1,5 @@ +var INPUT_TYPES = new Set(["INPUT", "TEXTAREA"]); + function create_message_bubble(message_area, message_positivity, message_text, lifespan) { if (lifespan === undefined) diff --git a/frontends/etiquette_flask/static/js/photoclipboard.js b/frontends/etiquette_flask/static/js/photoclipboard.js index a49944b..69df6d3 100644 --- a/frontends/etiquette_flask/static/js/photoclipboard.js +++ b/frontends/etiquette_flask/static/js/photoclipboard.js @@ -167,6 +167,10 @@ function set_keybinds() { window.addEventListener("keydown", function(event) { + if (INPUT_TYPES.has(event.target.tagName)) + { + return; + } if (event.key == "a" && event.ctrlKey) { select_all_photos();