1
0
mirror of https://github.com/BoostIo/Boostnote synced 2026-03-29 13:25:21 +00:00

Merge pull request #96 from yosmoc/tab_tag_submit

submit the tag when receiving 'tab' key
This commit is contained in:
Dick Choi
2016-08-25 13:01:42 +09:00
committed by GitHub

View File

@@ -22,6 +22,10 @@ class TagSelect extends React.Component {
handleNewTagInputKeyDown (e) {
switch (e.keyCode) {
case 9:
e.preventDefault()
this.submitTag()
break
case 13:
this.submitTag()
break