1
0
espelhamento de https://github.com/karl0ss/homepage.git sincronizado 2025-11-24 12:04:29 +00:00

Fix: support cyrillic characters in quicklaunch (#3020)

Esse commit está contido em:
shamoon 2024-02-28 01:46:06 -08:00 commit de GitHub
commit 68e4b98ddb
Nenhuma chave conhecida encontrada para esta assinatura no banco de dados
ID da chave GPG: B5690EEEBB952194

Ver arquivo

@ -225,7 +225,7 @@ function Home({ initialSettings }) {
if (e.target.tagName === "BODY" || e.target.id === "inner_wrapper") {
if (
(e.key.length === 1 &&
e.key.match(/(\w|\s|[à-ü]|[À-Ü])/g) &&
e.key.match(/(\w|\s|[à-ü]|[À-Ü]|[\w\u0430-\u044f])/gi) &&
!(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))