MCPcopy Create free account
hub / github.com/Lobos/react-ui / isPresto

Function isPresto

docs/lib/react.js:76–79  ·  view source on GitHub ↗

* Opera <= 12 includes TextEvent in window, but does not fire * text input events. Rely on keypress instead.

()

Source from the content-addressed store, hash-verified

74 * text input events. Rely on keypress instead.
75 */
76function isPresto() {
77 var opera = window.opera;
78 return typeof opera === 'object' && typeof opera.version === 'function' && parseInt(opera.version(), 10) <= 12;
79}
80
81var SPACEBAR_CODE = 32;
82var SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE);

Callers 1

react.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…