Show More
@@ -202,8 +202,8 b' define([' | |||||
202 | // Handles text submition |
|
202 | // Handles text submition | |
203 | if (e.keyCode == 13) { // Return key |
|
203 | if (e.keyCode == 13) { // Return key | |
204 | this.send({event: 'submit'}); |
|
204 | this.send({event: 'submit'}); | |
205 |
e |
|
205 | e.stopPropagation(); | |
206 |
e |
|
206 | e.preventDefault(); | |
207 | return false; |
|
207 | return false; | |
208 | } |
|
208 | } | |
209 | }, |
|
209 | }, | |
@@ -214,8 +214,8 b' define([' | |||||
214 | // TODO: Is the original bug actually a fault of the keyboard |
|
214 | // TODO: Is the original bug actually a fault of the keyboard | |
215 | // manager? |
|
215 | // manager? | |
216 | if (e.relatedTarget === null) { |
|
216 | if (e.relatedTarget === null) { | |
217 |
e |
|
217 | e.stopPropagation(); | |
218 |
e |
|
218 | e.preventDefault(); | |
219 | return false; |
|
219 | return false; | |
220 | } |
|
220 | } | |
221 | }, |
|
221 | }, | |
@@ -224,8 +224,8 b' define([' | |||||
224 | // Prevent a blur from firing if the blur was not user intended. |
|
224 | // Prevent a blur from firing if the blur was not user intended. | |
225 | // This is a workaround for the return-key focus loss bug. |
|
225 | // This is a workaround for the return-key focus loss bug. | |
226 | if (e.relatedTarget === null) { |
|
226 | if (e.relatedTarget === null) { | |
227 |
e |
|
227 | e.stopPropagation(); | |
228 |
e |
|
228 | e.preventDefault(); | |
229 | return false; |
|
229 | return false; | |
230 | } |
|
230 | } | |
231 | }, |
|
231 | }, |
General Comments 0
You need to be logged in to leave comments.
Login now