Commit 6d7dcfc5 authored by ransome1's avatar ransome1
Browse files

Enhancement on keyboard navigation

parent b5bb31bd
......@@ -16,6 +16,7 @@ Thumbs.db
flatpak/generated-sources.json
flatpak/com.github.ransome1.sleek.yml
assets/icons/bak
build/dmg
squashfs-root/
.eslintrc.json
.stylelintrc.json
......
......@@ -220,7 +220,6 @@ export function configureMainView() {
// add version number to about tab in settings modal
document.getElementById("version").innerHTML = appData.version;
if(typeof items === "object") {
// jump to previously added item
if(document.getElementById("previousItem")) {
//const index
......@@ -228,7 +227,6 @@ export function configureMainView() {
//helper.jumpToItem(document.getElementById("previousItem"))
focusRow();
}
// remove onboarding
showOnboarding(false).then(function(response) {
console.info(response);
......
......@@ -134,7 +134,7 @@ export function registerShortcuts() {
// escape in context menu
if(event.key === "Escape" && todoContext.classList.contains("is-active")) {
closeTodoContext();
focusRow();
focusRow(currentRow);
return false;
}
// switch files
......@@ -293,12 +293,12 @@ export function registerShortcuts() {
return false;
}
});
todoTable.addEventListener ("keyup", function() {
if(event.key === "Escape") {
focusRow(false);
return false;
}
});
// todoTable.addEventListener ("keyup", function() {
// if(event.key === "Escape") {
// focusRow(false);
// return false;
// }
// });
// event for closing modal windows
modal.forEach(function(element) {
element.addEventListener("keydown", function(event) {
......
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