Add y as inbox archive shortcut alongside a
Both a and y now archive the selected item in the mine tab. Archive requires selecting an item first with j/k navigation. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
parent
2ec4ba629e
commit
c8956094ad
1 changed files with 2 additions and 1 deletions
|
|
@ -966,7 +966,8 @@ export function Inbox() {
|
||||||
setSelectedIndex((prev) => Math.max(prev - 1, 0));
|
setSelectedIndex((prev) => Math.max(prev - 1, 0));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "a": {
|
case "a":
|
||||||
|
case "y": {
|
||||||
if (!isMineTab || selectedIndex < 0 || selectedIndex >= itemCount) return;
|
if (!isMineTab || selectedIndex < 0 || selectedIndex >= itemCount) return;
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
const item = workItemsToRender[selectedIndex];
|
const item = workItemsToRender[selectedIndex];
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue