You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-26 22:41:17 +02:00
Android: Fixes #12952: External keyboard: Fix adding tags by pressing enter on certain Android devices (#13069)
This commit is contained in:
@@ -458,10 +458,11 @@ const useInputEventHandlers = ({
|
||||
} else if (key === 'ArrowUp') {
|
||||
selectedIndexControl.onPreviousResult();
|
||||
event.preventDefault();
|
||||
} else if (key === 'Enter') {
|
||||
} else if (key === 'Enter' && Platform.OS === 'web') {
|
||||
// This case is necessary on web to prevent the
|
||||
// search input from becoming defocused after
|
||||
// pressing "enter".
|
||||
// pressing "enter". Enter key behavior is handled
|
||||
// elsewhere for other platforms.
|
||||
event.preventDefault();
|
||||
onSubmit();
|
||||
setSearch('');
|
||||
|
||||
Reference in New Issue
Block a user