Commit 7c8e28be85762984790fb8433e8ceb84c5ccf8e5
Merge branch 'fix-enter-bug' of ssb://%s9mSFATE4RGyJx9wgH22lBrvD4CgUQW4yeguSWWjtqc=.sha256
Dominic Tarr committed on 11/15/2016, 2:04:07 PMParent: 27f96fc2a83fb4fc0710063100739ff22eb1f00e
Parent: ce6257fb0a6270cda9eeef681806e5547a82ef3a
Files changed
modules_basic/message.js | changed |
modules_basic/message.js | |||
---|---|---|---|
@@ -78,8 +78,13 @@ | |||
78 | 78 … | backlinks, | |
79 | 79 … | {onkeydown: function (ev) { | |
80 | 80 … | //on enter, hit first meta. | |
81 | 81 … | if(ev.keyCode == 13) { | |
82 … | + | ||
83 … | + // unless in an input | ||
84 … | + if (ev.target.nodeName === 'INPUT' | ||
85 … | + || ev.target.nodeName === 'TEXTAREA') return | ||
86 … | + | ||
82 | 87 … | msg.querySelector('.enter').click() | |
83 | 88 … | } | |
84 | 89 … | }} | |
85 | 90 … | ) |
Built with git-ssb-web