* Opera <= 12 includes TextEvent in window, but does not fire * text input events. Rely on keypress instead.
()
| 74 | * text input events. Rely on keypress instead. |
| 75 | */ |
| 76 | function isPresto() { |
| 77 | var opera = window.opera; |
| 78 | return typeof opera === 'object' && typeof opera.version === 'function' && parseInt(opera.version(), 10) <= 12; |
| 79 | } |
| 80 | |
| 81 | var SPACEBAR_CODE = 32; |
| 82 | var SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE); |
no outgoing calls
no test coverage detected
searching dependent graphs…