-
Is there a specific reason why context menu and user selection has been disabled? woudl be nice to have at least an option to allow it. |
Beta Was this translation helpful? Give feedback.
Answered by
kyoshino
Nov 22, 2023
Replies: 3 comments 4 replies
-
if (
!document.documentElement.matches('[data-env="dev"]') &&
!document.documentElement.matches('[data-allow-contextmenu]') &&
!(/** @type {HTMLElement} */ (event.target)?.matches('input[type="text"], textarea'))
) {
event.preventDefault();
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
Because
There is an option to enable it:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
zanhk
-
Related: I have a plan to replace the browser’s native scrollbars with custom scrollbars because native scrollbars look bad, especially on Windows. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Because
There is an option to enable it: