Skip to content
This repository has been archived by the owner on Apr 26, 2018. It is now read-only.

Commit

Permalink
Pressing cmd-enter submits the feedback
Browse files Browse the repository at this point in the history
Closes #18
  • Loading branch information
probablycorey committed Mar 3, 2014
1 parent a89e097 commit 15be85c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions keymaps/feedback.cson
@@ -1,3 +1,6 @@
'body .feedback':
'cmd-enter': 'feedback:send'

'body .feedback, body .support-info':
'tab': 'feedback:tab'
'shift-tab': 'feedback:tab-previous'
1 change: 1 addition & 0 deletions lib/feedback-form-view.coffee
Expand Up @@ -42,6 +42,7 @@ class FeedbackFormView extends View

initialize: ->
@subscribe @sendButton, 'click', => @send()
@subscribe this, 'feedback:send', => @send()
@subscribe atom.workspaceView, 'core:cancel', => @detach()
@subscribe this, 'focusout', =>
# during the focusout event body is the active element. Use nextTick to determine what the actual active element will be
Expand Down

0 comments on commit 15be85c

Please sign in to comment.