projects
/
hnim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
824fa7b
)
Fix comment composition
author
Jacob Casper
<dev@jacobcasper.com>
Mon, 7 Feb 2022 21:32:59 +0000
(15:32 -0600)
committer
Jacob Casper
<dev@jacobcasper.com>
Mon, 7 Feb 2022 21:32:59 +0000
(15:32 -0600)
Don't allow controlling, re-directing window, etc. while attempting to
compose a comment.
hnim.js
patch
|
blob
|
blame
|
history
diff --git
a/hnim.js
b/hnim.js
index
ab854f8
..
3910014
100644
(file)
--- a/
hnim.js
+++ b/
hnim.js
@@
-51,7
+51,7
@@
change(e.target.closest("tr.athing"));
})
document.addEventListener("keydown", (e) => {
- if (e.isComposing) {
+ if (e.
target.type === 'textarea' || e.
isComposing) {
return;
}
switch (e.key) {