1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-02-10 19:41:43 +02:00

Desktop: Fixes #11640: Pressing Shift+Tab when focus is on notebook list would jump straight to editor (#11641)

This commit is contained in:
pedr 2025-01-18 09:41:18 -03:00 committed by GitHub
parent dc10ff6215
commit 29e55b8231
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -54,10 +54,6 @@ const useOnSidebarKeyDownHandler = (props: Props) => {
indexChange = -1;
} else if (event.code === 'ArrowDown') {
indexChange = 1;
} else if (event.code === 'Tab' && event.shiftKey) {
event.preventDefault();
void CommandService.instance().execute('focusElement', 'noteBody');
} else if (event.code === 'Enter' && !event.shiftKey) {
event.preventDefault();
void CommandService.instance().execute('focusElement', 'noteList');