git ssb

16+

Dominic / patchbay



Commit ce6257fb0a6270cda9eeef681806e5547a82ef3a

Allow using enter key in text fields in messages

namely, creating a issue or pull-request

Fix %GXvH3rvSoeDpxwL/TyCZLhsuPxIqnlBnYUwmmyGzaqs=.sha256
cel committed on 11/15/2016, 5:24:16 AM
Parent: da116a36a6e34b4499633c0a896b9bf32d263383

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