git ssb

16+

Dominic / patchbay



Commit 7c8e28be85762984790fb8433e8ceb84c5ccf8e5

Merge branch 'fix-enter-bug' of ssb://%s9mSFATE4RGyJx9wgH22lBrvD4CgUQW4yeguSWWjtqc=.sha256

Dominic Tarr committed on 11/15/2016, 2:04:07 PM
Parent: 27f96fc2a83fb4fc0710063100739ff22eb1f00e
Parent: ce6257fb0a6270cda9eeef681806e5547a82ef3a

Files changed

modules_basic/message.jschanged
modules_basic/message.jsView
@@ -78,8 +78,13 @@
7878 backlinks,
7979 {onkeydown: function (ev) {
8080 //on enter, hit first meta.
8181 if(ev.keyCode == 13) {
82 +
83 + // unless in an input
84 + if (ev.target.nodeName === 'INPUT'
85 + || ev.target.nodeName === 'TEXTAREA') return
86 +
8287 msg.querySelector('.enter').click()
8388 }
8489 }}
8590 )

Built with git-ssb-web