Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

hide keyboard on scroll

  • Loading branch information...
commit 7663aeecbf1b49523f049670974563087b8751b4 1 parent a9f5eac
David Becher authored March 07, 2013

Showing 1 changed file with 6 additions and 1 deletion. Show diff stats Hide diff stats

  1. 7  js/app.js
7  js/app.js
@@ -14,7 +14,8 @@
14 14
     events: {
15 15
       "keyup #new-message-text": 'toggleSendButton',
16 16
       "submit #new-message-form": 'send',
17  
-      "click .chat-message": 'goToMessage'
  17
+      "click .chat-message": 'goToMessage',
  18
+      "scroll #chat-messages": 'hideKeyboard'
18 19
     },
19 20
 
20 21
     initialize: function() {
@@ -97,6 +98,10 @@
97 98
       return false;
98 99
     },
99 100
 
  101
+    hideKeyboard: function() {
  102
+      if(document.activeElement) document.activeElement.blur();
  103
+    },
  104
+
100 105
     cleanup: function() {
101 106
       delete this.$textField, this.$button;
102 107
       this._cleanup();

0 notes on commit 7663aee

Please sign in to comment.
Something went wrong with that request. Please try again.