mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-06 12:18:48 +00:00
Fix quick launch not opening with accented characters, decoding of characters in suggestions (#2802)
This commit is contained in:
parent
578def33f5
commit
1ddd528bd7
2 changed files with 6 additions and 2 deletions
|
@ -224,7 +224,10 @@ function Home({ initialSettings }) {
|
|||
function handleKeyDown(e) {
|
||||
if (e.target.tagName === "BODY" || e.target.id === "inner_wrapper") {
|
||||
if (
|
||||
(e.key.length === 1 && e.key.match(/(\w|\s)/g) && !(e.altKey || e.ctrlKey || e.metaKey || e.shiftKey)) ||
|
||||
(e.key.length === 1 &&
|
||||
e.key.match(/(\w|\s|[à-ü]|[À-Ü])/g) &&
|
||||
!(e.altKey || e.ctrlKey || e.metaKey || e.shiftKey)) ||
|
||||
e.key.match(/([à-ü]|[À-Ü])/g) || // accented characters may require modifier keys
|
||||
(e.key === "v" && (e.ctrlKey || e.metaKey))
|
||||
) {
|
||||
setSearching(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue