mirror of
https://github.com/frappe/books.git
synced 2024-11-08 14:50:56 +00:00
fix(ui/ux): prevent shorcuts in input
- border on Toast
This commit is contained in:
parent
aeaddc30a4
commit
dbbe4fe9de
@ -16,6 +16,7 @@
|
||||
z-30
|
||||
bg-white
|
||||
rounded-lg
|
||||
border
|
||||
"
|
||||
style="pointer-events: auto"
|
||||
>
|
||||
|
@ -31,6 +31,13 @@ export function useKeys() {
|
||||
});
|
||||
|
||||
const keydownListener = (e: KeyboardEvent) => {
|
||||
if (
|
||||
e.target instanceof HTMLInputElement &&
|
||||
!(e.altKey || e.metaKey || e.ctrlKey)
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
keys.alt = e.altKey;
|
||||
keys.ctrl = e.ctrlKey;
|
||||
keys.meta = e.metaKey;
|
||||
|
Loading…
Reference in New Issue
Block a user