diff --git a/website/public/.well-known/assetslinks.json b/website/public/.well-known/assetslinks.json new file mode 100644 index 0000000..b70e5ad --- /dev/null +++ b/website/public/.well-known/assetslinks.json @@ -0,0 +1,11 @@ +[ + { + "relation": ["delegate_permission/common.handle_all_urls"], + "target": { + "namespace": "android_app", + "package_name": "com.lingdocs.pashto.dictionary", + "sha256_cert_fingerprints": + ["53:8E:B9:CD:42:CD:3B:48:D9:08:BE:6C:A3:92:35:5D:50:DD:A5:A8:0B:93:DB:B4:AC:75:BB:BC:52:B3:E4:BD"] + } + } +] \ No newline at end of file diff --git a/website/src/components/SearchBar.tsx b/website/src/components/SearchBar.tsx index 62c71d4..0f9eb68 100644 --- a/website/src/components/SearchBar.tsx +++ b/website/src/components/SearchBar.tsx @@ -64,6 +64,7 @@ const SearchBar = ({ state, optionsDispatch, handleSearchValueChange, onBottom } handleSearchValueChange(e.target.value); }} onBlur={e => { + // don't loose focus/cursor if clicking on a word/star etc. if (e.relatedTarget === null) { e.target.focus(); } @@ -88,7 +89,7 @@ const SearchBar = ({ state, optionsDispatch, handleSearchValueChange, onBottom } handleSearchValueChange(""); // keep the focus on the input after pressing the X inputRef.current && inputRef.current.focus(); - }: () => null} + } : undefined} data-testid="clearButton" >