From ad84e6a3a0abf818cf237fcf76330ea4b5033f64 Mon Sep 17 00:00:00 2001 From: Spacelord Date: Tue, 27 Jun 2023 23:40:52 +0200 Subject: [PATCH] ALT+CTRL+C Keybind! Don't try to stop me writing in a textbox with the keybind C again.... --- static/js/searchBox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/searchBox.js b/static/js/searchBox.js index a396961..1b2f26d 100644 --- a/static/js/searchBox.js +++ b/static/js/searchBox.js @@ -105,7 +105,7 @@ function handleSearchSubmit(e) { function handleHotKey(e) { // If c is pressed, focus on the search box - if(e.key == 'c') { + if(e.key == 'c' && e.altKey && e.ctrlKey) { // Show search_modal modal bootstrap.Modal.getOrCreateInstance($('#search_modal')).show() document.getElementById('SearchBoxInput').focus();