Commit 69f4d81f authored by ransome1's avatar ransome1
Browse files

Merge branch 'develop' of github.com:ransome1/sleek into develop

parents 5f4e3592 d100b74a
......@@ -58,7 +58,16 @@ export async function registerShortcuts() {
if(event.key === "Escape") {
// if search is focused, lose focus on escape
if(document.activeElement.id==="todoTableSearch") todoTableSearch.blur();
if(document.activeElement.id==="todoTableSearch") {
todoTableSearch.blur();
return false;
}
// if 'add as todo' is focused, return to search
if(document.activeElement.id==="todoTableSearchAddTodo") {
document.getElementById("todoTableSearch").focus();
return false;
}
// if a datepicker container is detected interrupt, datepicker destruction is handled in module
if(document.querySelector(".datepicker")) return false;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment