feat: improve change editor menu keyboard navigation (#831)

This commit is contained in:
Aman Harwara
2022-01-30 20:28:35 +05:30
committed by GitHub
parent b932e2a45e
commit 0ecbde6bac
5 changed files with 98 additions and 72 deletions

View File

@@ -6,6 +6,10 @@ import { SNNote } from '@standardnotes/snjs';
import { observer } from 'mobx-react-lite';
import { FunctionComponent } from 'preact';
import { NotesListItem } from './NotesListItem';
import {
FOCUSABLE_BUT_NOT_TABBABLE,
NOTES_LIST_SCROLL_THRESHOLD,
} from '@/views/constants';
type Props = {
application: WebApplication;
@@ -16,9 +20,6 @@ type Props = {
paginate: () => void;
};
const FOCUSABLE_BUT_NOT_TABBABLE = -1;
const NOTES_LIST_SCROLL_THRESHOLD = 200;
export const NotesList: FunctionComponent<Props> = observer(
({
application,