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:
parent
dc10ff6215
commit
29e55b8231
@ -54,10 +54,6 @@ const useOnSidebarKeyDownHandler = (props: Props) => {
|
|||||||
indexChange = -1;
|
indexChange = -1;
|
||||||
} else if (event.code === 'ArrowDown') {
|
} else if (event.code === 'ArrowDown') {
|
||||||
indexChange = 1;
|
indexChange = 1;
|
||||||
} else if (event.code === 'Tab' && event.shiftKey) {
|
|
||||||
event.preventDefault();
|
|
||||||
|
|
||||||
void CommandService.instance().execute('focusElement', 'noteBody');
|
|
||||||
} else if (event.code === 'Enter' && !event.shiftKey) {
|
} else if (event.code === 'Enter' && !event.shiftKey) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
void CommandService.instance().execute('focusElement', 'noteList');
|
void CommandService.instance().execute('focusElement', 'noteList');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user