aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2023-09-01 22:53:44 -0400
committerbobzel <zzzman@gmail.com>2023-09-01 22:53:44 -0400
commit0c1da19094f1278a4a0ada4f0eade924337ee1f4 (patch)
treecdda79cd662f2e342bb0e0405f0ff768930a7c7e /src
parentd4ae1056b281979864a7e6668a85951bd586684e (diff)
fixed entering text into web pages.
Diffstat (limited to 'src')
-rw-r--r--src/Utils.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Utils.ts b/src/Utils.ts
index 29824ba94..9b969081f 100644
--- a/src/Utils.ts
+++ b/src/Utils.ts
@@ -769,6 +769,7 @@ export function lightOrDark(color: any) {
export function getWordAtPoint(elem: any, x: number, y: number): string | undefined {
if (elem.tagName === 'INPUT') return 'input';
+ if (elem.tagName === 'TEXTAREA') return 'textarea';
if (elem.nodeType === elem.TEXT_NODE) {
const range = elem.ownerDocument.createRange();
range.selectNodeContents(elem);