mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
Merge pull request #96 from yosmoc/tab_tag_submit
submit the tag when receiving 'tab' key
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user