fix altKey
This commit is contained in:
@@ -42,7 +42,8 @@ export function SearchWidget({
|
|||||||
|
|
||||||
const onKeyPress = (e: React.KeyboardEvent) => {
|
const onKeyPress = (e: React.KeyboardEvent) => {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
if (canOpenApp && e.metaKey && e.key === 'Enter') {
|
console.log({ e });
|
||||||
|
if (canOpenApp && e.altKey && e.key === 'Enter') {
|
||||||
onOpenApp();
|
onOpenApp();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user