mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-27 20:01:10 +01:00
Multipart form UI and fixes
This commit is contained in:
@@ -222,8 +222,9 @@ export function Sidebar({ className }: Props) {
|
||||
|
||||
useKey(
|
||||
'ArrowUp',
|
||||
() => {
|
||||
(e) => {
|
||||
if (!hasFocus) return;
|
||||
e.preventDefault();
|
||||
const i = selectableRequests.findIndex((r) => r.id === selectedId);
|
||||
const newSelectable = selectableRequests[i - 1];
|
||||
if (newSelectable == null) {
|
||||
@@ -239,8 +240,9 @@ export function Sidebar({ className }: Props) {
|
||||
|
||||
useKey(
|
||||
'ArrowDown',
|
||||
() => {
|
||||
(e) => {
|
||||
if (!hasFocus) return;
|
||||
e.preventDefault();
|
||||
const i = selectableRequests.findIndex((r) => r.id === selectedId);
|
||||
const newSelectable = selectableRequests[i + 1];
|
||||
if (newSelectable == null) {
|
||||
|
||||
Reference in New Issue
Block a user