Close notification on input enter
This commit is contained in:
parent
0d1a5846a1
commit
982fb27f58
1 changed files with 6 additions and 1 deletions
|
@ -69,6 +69,11 @@ class Notifications
|
|||
$(".select", elem).on "click", =>
|
||||
@close elem
|
||||
|
||||
# Input enter
|
||||
$("input", elem).on "keyup", (e) =>
|
||||
if e.keyCode == 13
|
||||
@close elem
|
||||
|
||||
return elem
|
||||
|
||||
|
||||
|
@ -81,4 +86,4 @@ class Notifications
|
|||
console.log "[Notifications]", args...
|
||||
|
||||
|
||||
window.Notifications = Notifications
|
||||
window.Notifications = Notifications
|
||||
|
|
Loading…
Reference in a new issue