(event: React.KeyboardEvent<HTMLInputElement>)
| 349 | } |
| 350 | |
| 351 | handleKeyDown(event: React.KeyboardEvent<HTMLInputElement>) { |
| 352 | const waveEvent = adaptFromReactOrNativeKeyEvent(event); |
| 353 | if (checkKeyPressed(waveEvent, "Enter")) { |
| 354 | const url = globalStore.get(this.url); |
| 355 | this.loadUrl(url, "enter"); |
| 356 | this.urlInputRef.current?.blur(); |
| 357 | return; |
| 358 | } |
| 359 | if (checkKeyPressed(waveEvent, "Escape")) { |
| 360 | this.webviewRef.current?.focus(); |
| 361 | } |
| 362 | } |
| 363 | |
| 364 | handleFocus(event: React.FocusEvent<HTMLInputElement>) { |
| 365 | globalStore.set(this.urlWrapperClassName, "focused"); |
nothing calls this directly
no test coverage detected