Skip to content

Commit

Permalink
fixes #1273 Added type for KeyboardEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamed1408 authored Nov 17, 2024
1 parent f305210 commit 8e5f82b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const AddressBar = () => {
setPermissionRequest(null);
};

const handleKeyDown: KeyboardEventHandler<HTMLInputElement> = (e) => {
const handleKeyDown: KeyboardEventHandler<HTMLInputElement> = (e: React.KeyboardEvent<HTMLInputElement>) => {

Check failure on line 134 in desktop-app/src/renderer/components/ToolBar/AddressBar/index.tsx

View workflow job for this annotation

GitHub Actions / test (macos-latest)

Replace `e:·React.KeyboardEvent<HTMLInputElement>` with `⏎····e:·React.KeyboardEvent<HTMLInputElement>⏎··`
if (!isSuggesting && !['Escape', 'Enter'].includes(e.key)) {
setIsSuggesting(true);
} else if (e.key === 'Escape' && isSuggesting) {
Expand Down

0 comments on commit 8e5f82b

Please sign in to comment.