Best Python code snippet using ATX
android.view.KeyEvent.js
Source:android.view.KeyEvent.js  
1/**2 * Hyperloop3 * Generated code is Copyright (c) 2017 Appcelerator, Inc. and subject to the4 * Appcelerator Platform Subscription agreement.5 *6 * WARNING: This is generated code. Modify at your own risk and without support7 *8 * @module android.view.KeyEvent9 */10var Hyperloop = require('hyperloop');11var parentPackage = require('android.view');12/**13 * @class android.view.KeyEvent14 * @extends android.view.InputEvent 15 * @constructor16 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html}17 **/18var KeyEvent = function() {19	var result;20	// Allow the constructor to either invoke the real java constructor, or function as a "wrapping" method that will take21	// a single argument that is a native hyperloop proxy for this class type and just wraps it in our JS type.22	if (arguments.length == 1 && arguments[0].isNativeProxy && arguments[0].isInstanceProxy && arguments[0].isInstanceOf('android.view.KeyEvent')) {23		result = arguments[0];24	}25	else {26		result = KeyEvent.class.newInstance(arguments);27	}28	this.$native = result;29	this._hasPointer = result != null;30	this._private = {};31};32var SuperClass = require('android.view.InputEvent');33KeyEvent.prototype = Object.create(SuperClass.prototype);34KeyEvent.prototype.constructor = KeyEvent;35Object.defineProperty(KeyEvent.prototype, 'super', {36	get: function() {37		if (!this._hasPointer) return null;38		return new KeyEvent(this.$native.super);39	},40	enumerable: true41});42KeyEvent.className = 'android.view.KeyEvent';43KeyEvent.prototype.className = 'android.view.KeyEvent';44// class property45Object.defineProperty(KeyEvent, 'class', {46	get: function() {47		return Hyperloop.getClass('android.view.KeyEvent');48	},49	enumerable: true,50	configurable: false51});52// Allow subclassing53KeyEvent.extend = function (overrides) {54	var subclassProxy = Hyperloop.extend('android.view.KeyEvent');55	// Generate a JS wrapper for our dynamic subclass56	var SubClass = function() {57		var result = subclassProxy.newInstance(arguments),58			instance = this,59			copy = overrides,60			modified = {};61		function _wrapArg(arg) {62			if (arg.apiName && arg.isNativeProxy && arg.isInstanceProxy) { // Assume hyperloop proxy, wrap in JS wrapper63				var other = require(arg.apiName);64				return new other(arg);65			}66			return arg;67		}68		function _wrapArgs() {69			var newArgs = [];70			for (var i = 0; i < arguments.length; i++) {71				newArgs[i] = _wrapArg(arguments[i]);72			}73			return newArgs;74		};75		Object.keys(copy).forEach(function (each) {76			// Hang the original override method on the JS wrapper object77			instance[each] = function() {78				return copy[each].apply(instance, arguments);79			};80			// Hang a delegate on the "overrides" object we pass into Java.81			// This one wraps hyperloop proxies from Java in their JS wrapper before forwarding on82			modified[each] = function() {83				return instance[each].apply(instance, _wrapArgs.apply(this, arguments));84			}85		});86		result.setOverrides(modified);87		this.$native = result;88		this._hasPointer = result != null;89		this._private = {};90	};91	// it extends the JS wrapper for the parent type92	SubClass.prototype = Object.create(KeyEvent.prototype);93	SubClass.prototype.constructor = SubClass;94	return SubClass;95};96// Cast97KeyEvent.cast = function(object) {98	if (!object.$native || !object.$native.isInstanceProxy) return object;99	return new KeyEvent(Hyperloop.cast('android.view.KeyEvent', object.$native));100};101// Constants102/**103 * @constant104 * @default105 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_TV_INPUT_HDMI_4}106 */107KeyEvent.KEYCODE_TV_INPUT_HDMI_4 = 246;108/**109 * @constant110 * @default111 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_CAPS_LOCK}112 */113KeyEvent.KEYCODE_CAPS_LOCK = 115;114/**115 * @constant116 * @default117 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_NAVIGATE_PREVIOUS}118 */119KeyEvent.KEYCODE_NAVIGATE_PREVIOUS = 260;120/**121 * @constant122 * @default123 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_TV_INPUT_HDMI_2}124 */125KeyEvent.KEYCODE_TV_INPUT_HDMI_2 = 244;126/**127 * @constant128 * @default129 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BUTTON_A}130 */131KeyEvent.KEYCODE_BUTTON_A = 96;132/**133 * @constant134 * @default135 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_TV_INPUT_HDMI_3}136 */137KeyEvent.KEYCODE_TV_INPUT_HDMI_3 = 245;138/**139 * @constant140 * @default141 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_TV_TIMER_PROGRAMMING}142 */143KeyEvent.KEYCODE_TV_TIMER_PROGRAMMING = 258;144/**145 * @constant146 * @default147 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_TV_INPUT_HDMI_1}148 */149KeyEvent.KEYCODE_TV_INPUT_HDMI_1 = 243;150/**151 * @constant152 * @default153 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BUTTON_B}154 */155KeyEvent.KEYCODE_BUTTON_B = 97;156/**157 * @constant158 * @default159 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BUTTON_L1}160 */161KeyEvent.KEYCODE_BUTTON_L1 = 102;162/**163 * @constant164 * @default165 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BUTTON_C}166 */167KeyEvent.KEYCODE_BUTTON_C = 98;168/**169 * @constant170 * @default171 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_CHANNEL_DOWN}172 */173KeyEvent.KEYCODE_CHANNEL_DOWN = 167;174/**175 * @constant176 * @default177 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BRIGHTNESS_DOWN}178 */179KeyEvent.KEYCODE_BRIGHTNESS_DOWN = 220;180/**181 * @constant182 * @default183 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_CTRL_LEFT}184 */185KeyEvent.KEYCODE_CTRL_LEFT = 113;186/**187 * @constant188 * @default189 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_DPAD_DOWN}190 */191KeyEvent.KEYCODE_DPAD_DOWN = 20;192/**193 * @constant194 * @default195 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_TV_TERRESTRIAL_ANALOG}196 */197KeyEvent.KEYCODE_TV_TERRESTRIAL_ANALOG = 235;198/**199 * @constant200 * @default201 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_ZOOM_IN}202 */203KeyEvent.KEYCODE_ZOOM_IN = 168;204/**205 * @constant206 * @default207 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_HELP}208 */209KeyEvent.KEYCODE_HELP = 259;210/**211 * @constant212 * @default213 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BUTTON_X}214 */215KeyEvent.KEYCODE_BUTTON_X = 99;216/**217 * @constant218 * @default219 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BUTTON_Y}220 */221KeyEvent.KEYCODE_BUTTON_Y = 100;222/**223 * @constant224 * @default225 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_NUMPAD_MULTIPLY}226 */227KeyEvent.KEYCODE_NUMPAD_MULTIPLY = 155;228/**229 * @constant230 * @default231 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_AVR_INPUT}232 */233KeyEvent.KEYCODE_AVR_INPUT = 182;234/**235 * @constant236 * @default237 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_TV_NUMBER_ENTRY}238 */239KeyEvent.KEYCODE_TV_NUMBER_ENTRY = 234;240/**241 * @constant242 * @default243 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#META_FUNCTION_ON}244 */245KeyEvent.META_FUNCTION_ON = 8;246/**247 * @constant248 * @default249 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_VOLUME_UP}250 */251KeyEvent.KEYCODE_VOLUME_UP = 24;252/**253 * @constant254 * @default255 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#META_ALT_ON}256 */257KeyEvent.META_ALT_ON = 2;258/**259 * @constant260 * @default261 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_TV_SATELLITE_CS}262 */263KeyEvent.KEYCODE_TV_SATELLITE_CS = 239;264/**265 * @constant266 * @default267 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_TV_RADIO_SERVICE}268 */269KeyEvent.KEYCODE_TV_RADIO_SERVICE = 232;270/**271 * @constant272 * @default273 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_CAPTIONS}274 */275KeyEvent.KEYCODE_CAPTIONS = 175;276/**277 * @constant278 * @default279 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_CLEAR}280 */281KeyEvent.KEYCODE_CLEAR = 28;282/**283 * @constant284 * @default285 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_ENDCALL}286 */287KeyEvent.KEYCODE_ENDCALL = 6;288/**289 * @constant290 * @default291 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BUTTON_1}292 */293KeyEvent.KEYCODE_BUTTON_1 = 188;294/**295 * @constant296 * @default297 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_POWER}298 */299KeyEvent.KEYCODE_POWER = 26;300/**301 * @constant302 * @default303 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BUTTON_4}304 */305KeyEvent.KEYCODE_BUTTON_4 = 191;306/**307 * @constant308 * @default309 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_MEDIA_CLOSE}310 */311KeyEvent.KEYCODE_MEDIA_CLOSE = 128;312/**313 * @constant314 * @default315 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BUTTON_5}316 */317KeyEvent.KEYCODE_BUTTON_5 = 192;318/**319 * @constant320 * @default321 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_MEDIA_SKIP_FORWARD}322 */323KeyEvent.KEYCODE_MEDIA_SKIP_FORWARD = 272;324/**325 * @constant326 * @default327 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BUTTON_2}328 */329KeyEvent.KEYCODE_BUTTON_2 = 189;330/**331 * @constant332 * @default333 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BUTTON_3}334 */335KeyEvent.KEYCODE_BUTTON_3 = 190;336/**337 * @constant338 * @default339 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BUTTON_8}340 */341KeyEvent.KEYCODE_BUTTON_8 = 195;342/**343 * @constant344 * @default345 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BUTTON_9}346 */347KeyEvent.KEYCODE_BUTTON_9 = 196;348/**349 * @constant350 * @default351 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_TV_AUDIO_DESCRIPTION}352 */353KeyEvent.KEYCODE_TV_AUDIO_DESCRIPTION = 252;354/**355 * @constant356 * @default357 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#META_CTRL_RIGHT_ON}358 */359KeyEvent.META_CTRL_RIGHT_ON = 16384;360/**361 * @constant362 * @default363 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#FLAG_FALLBACK}364 */365KeyEvent.FLAG_FALLBACK = 1024;366/**367 * @constant368 * @default369 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BUTTON_6}370 */371KeyEvent.KEYCODE_BUTTON_6 = 193;372/**373 * @constant374 * @default375 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_TV_NETWORK}376 */377KeyEvent.KEYCODE_TV_NETWORK = 241;378/**379 * @constant380 * @default381 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BUTTON_7}382 */383KeyEvent.KEYCODE_BUTTON_7 = 194;384/**385 * @constant386 * @default387 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_WAKEUP}388 */389KeyEvent.KEYCODE_WAKEUP = 224;390/**391 * @constant392 * @default393 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_LAST_CHANNEL}394 */395KeyEvent.KEYCODE_LAST_CHANNEL = 229;396/**397 * @constant398 * @default399 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BACK}400 */401KeyEvent.KEYCODE_BACK = 4;402/**403 * @constant404 * @default405 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#META_ALT_MASK}406 */407KeyEvent.META_ALT_MASK = 50;408/**409 * @constant410 * @default411 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_SHIFT_RIGHT}412 */413KeyEvent.KEYCODE_SHIFT_RIGHT = 60;414/**415 * @constant416 * @default417 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_DEL}418 */419KeyEvent.KEYCODE_DEL = 67;420/**421 * @constant422 * @default423 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#META_NUM_LOCK_ON}424 */425KeyEvent.META_NUM_LOCK_ON = 2097152;426/**427 * @constant428 * @default429 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#FLAG_SOFT_KEYBOARD}430 */431KeyEvent.FLAG_SOFT_KEYBOARD = 2;432/**433 * @constant434 * @default435 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BUTTON_SELECT}436 */437KeyEvent.KEYCODE_BUTTON_SELECT = 109;438/**439 * @constant440 * @default441 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_NOTIFICATION}442 */443KeyEvent.KEYCODE_NOTIFICATION = 83;444/**445 * @constant446 * @default447 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_LANGUAGE_SWITCH}448 */449KeyEvent.KEYCODE_LANGUAGE_SWITCH = 204;450/**451 * @constant452 * @default453 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_PICTSYMBOLS}454 */455KeyEvent.KEYCODE_PICTSYMBOLS = 94;456/**457 * @constant458 * @default459 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_STB_POWER}460 */461KeyEvent.KEYCODE_STB_POWER = 179;462/**463 * @constant464 * @default465 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_MEDIA_TOP_MENU}466 */467KeyEvent.KEYCODE_MEDIA_TOP_MENU = 226;468/**469 * @constant470 * @default471 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_CONTACTS}472 */473KeyEvent.KEYCODE_CONTACTS = 207;474/**475 * @constant476 * @default477 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_SPACE}478 */479KeyEvent.KEYCODE_SPACE = 62;480/**481 * @constant482 * @default483 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BUTTON_START}484 */485KeyEvent.KEYCODE_BUTTON_START = 108;486/**487 * @constant488 * @default489 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BUTTON_Z}490 */491KeyEvent.KEYCODE_BUTTON_Z = 101;492/**493 * @constant494 * @default495 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_TV_AUDIO_DESCRIPTION_MIX_UP}496 */497KeyEvent.KEYCODE_TV_AUDIO_DESCRIPTION_MIX_UP = 253;498/**499 * @constant500 * @default501 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_SETTINGS}502 */503KeyEvent.KEYCODE_SETTINGS = 176;504/**505 * @constant506 * @default507 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_TV_INPUT}508 */509KeyEvent.KEYCODE_TV_INPUT = 178;510/**511 * @constant512 * @default513 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_SOFT_LEFT}514 */515KeyEvent.KEYCODE_SOFT_LEFT = 1;516/**517 * @constant518 * @default519 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#FLAG_WOKE_HERE}520 */521KeyEvent.FLAG_WOKE_HERE = 1;522/**523 * @constant524 * @default525 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_ENTER}526 */527KeyEvent.KEYCODE_ENTER = 66;528/**529 * @constant530 * @default531 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_SOFT_RIGHT}532 */533KeyEvent.KEYCODE_SOFT_RIGHT = 2;534/**535 * @constant536 * @default537 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_APOSTROPHE}538 */539KeyEvent.KEYCODE_APOSTROPHE = 75;540/**541 * @constant542 * @default543 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_FOCUS}544 */545KeyEvent.KEYCODE_FOCUS = 80;546/**547 * @constant548 * @default549 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_HOME}550 */551KeyEvent.KEYCODE_HOME = 3;552/**553 * @constant554 * @default555 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_ALT_LEFT}556 */557KeyEvent.KEYCODE_ALT_LEFT = 57;558/**559 * @constant560 * @default561 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BUTTON_L2}562 */563KeyEvent.KEYCODE_BUTTON_L2 = 104;564/**565 * @constant566 * @default567 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_DVR}568 */569KeyEvent.KEYCODE_DVR = 173;570/**571 * @constant572 * @default573 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_ALT_RIGHT}574 */575KeyEvent.KEYCODE_ALT_RIGHT = 58;576/**577 * @constant578 * @default579 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_INFO}580 */581KeyEvent.KEYCODE_INFO = 165;582/**583 * @constant584 * @default585 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BRIGHTNESS_UP}586 */587KeyEvent.KEYCODE_BRIGHTNESS_UP = 221;588/**589 * @constant590 * @default591 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_MEDIA_REWIND}592 */593KeyEvent.KEYCODE_MEDIA_REWIND = 89;594/**595 * @constant596 * @default597 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_AT}598 */599KeyEvent.KEYCODE_AT = 77;600/**601 * @constant602 * @default603 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_ENVELOPE}604 */605KeyEvent.KEYCODE_ENVELOPE = 65;606/**607 * @constant608 * @default609 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_EQUALS}610 */611KeyEvent.KEYCODE_EQUALS = 70;612/**613 * @constant614 * @default615 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#META_SHIFT_MASK}616 */617KeyEvent.META_SHIFT_MASK = 193;618/**619 * @constant620 * @default621 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_NUMPAD_RIGHT_PAREN}622 */623KeyEvent.KEYCODE_NUMPAD_RIGHT_PAREN = 163;624/**625 * @constant626 * @default627 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_CHANNEL_UP}628 */629KeyEvent.KEYCODE_CHANNEL_UP = 166;630/**631 * @constant632 * @default633 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_WINDOW}634 */635KeyEvent.KEYCODE_WINDOW = 171;636/**637 * @constant638 * @default639 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_MANNER_MODE}640 */641KeyEvent.KEYCODE_MANNER_MODE = 205;642/**643 * @constant644 * @default645 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_RO}646 */647KeyEvent.KEYCODE_RO = 217;648/**649 * @constant650 * @default651 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_PAGE_UP}652 */653KeyEvent.KEYCODE_PAGE_UP = 92;654/**655 * @constant656 * @default657 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_GUIDE}658 */659KeyEvent.KEYCODE_GUIDE = 172;660/**661 * @constant662 * @default663 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#META_SYM_ON}664 */665KeyEvent.META_SYM_ON = 4;666/**667 * @constant668 * @default669 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_SLEEP}670 */671KeyEvent.KEYCODE_SLEEP = 223;672/**673 * @constant674 * @default675 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BACKSLASH}676 */677KeyEvent.KEYCODE_BACKSLASH = 73;678/**679 * @constant680 * @default681 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#ACTION_UP}682 */683KeyEvent.ACTION_UP = 1;684/**685 * @constant686 * @default687 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_TV_ANTENNA_CABLE}688 */689KeyEvent.KEYCODE_TV_ANTENNA_CABLE = 242;690/**691 * @constant692 * @default693 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_MEDIA_PLAY}694 */695KeyEvent.KEYCODE_MEDIA_PLAY = 126;696/**697 * @constant698 * @default699 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_FORWARD}700 */701KeyEvent.KEYCODE_FORWARD = 125;702/**703 * @constant704 * @default705 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_HENKAN}706 */707KeyEvent.KEYCODE_HENKAN = 214;708/**709 * @constant710 * @default711 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_STB_INPUT}712 */713KeyEvent.KEYCODE_STB_INPUT = 180;714/**715 * @constant716 * @default717 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_12}718 */719KeyEvent.KEYCODE_12 = 228;720/**721 * @constant722 * @default723 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_TV_INPUT_COMPONENT_1}724 */725KeyEvent.KEYCODE_TV_INPUT_COMPONENT_1 = 249;726/**727 * @constant728 * @default729 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#META_META_RIGHT_ON}730 */731KeyEvent.META_META_RIGHT_ON = 262144;732/**733 * @constant734 * @default735 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_TV_INPUT_COMPONENT_2}736 */737KeyEvent.KEYCODE_TV_INPUT_COMPONENT_2 = 250;738/**739 * @constant740 * @default741 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_KATAKANA_HIRAGANA}742 */743KeyEvent.KEYCODE_KATAKANA_HIRAGANA = 215;744/**745 * @constant746 * @default747 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_11}748 */749KeyEvent.KEYCODE_11 = 227;750/**751 * @constant752 * @default753 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_POUND}754 */755KeyEvent.KEYCODE_POUND = 18;756/**757 * @constant758 * @default759 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_NAVIGATE_NEXT}760 */761KeyEvent.KEYCODE_NAVIGATE_NEXT = 261;762/**763 * @constant764 * @default765 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_NUM}766 */767KeyEvent.KEYCODE_NUM = 78;768/**769 * @constant770 * @default771 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_PROG_YELLOW}772 */773KeyEvent.KEYCODE_PROG_YELLOW = 185;774/**775 * @constant776 * @default777 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_SEMICOLON}778 */779KeyEvent.KEYCODE_SEMICOLON = 74;780/**781 * @constant782 * @default783 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_MOVE_HOME}784 */785KeyEvent.KEYCODE_MOVE_HOME = 122;786/**787 * @constant788 * @default789 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_CALL}790 */791KeyEvent.KEYCODE_CALL = 5;792/**793 * @constant794 * @default795 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_MEDIA_PLAY_PAUSE}796 */797KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE = 85;798/**799 * @constant800 * @default801 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_ASSIST}802 */803KeyEvent.KEYCODE_ASSIST = 219;804/**805 * @constant806 * @default807 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_RIGHT_BRACKET}808 */809KeyEvent.KEYCODE_RIGHT_BRACKET = 72;810/**811 * @constant812 * @default813 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_NUMPAD_ENTER}814 */815KeyEvent.KEYCODE_NUMPAD_ENTER = 160;816/**817 * @constant818 * @default819 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_TV}820 */821KeyEvent.KEYCODE_TV = 170;822/**823 * @constant824 * @default825 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_TV_CONTENTS_MENU}826 */827KeyEvent.KEYCODE_TV_CONTENTS_MENU = 256;828/**829 * @constant830 * @default831 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_TV_SATELLITE}832 */833KeyEvent.KEYCODE_TV_SATELLITE = 237;834/**835 * @constant836 * @default837 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_STAR}838 */839KeyEvent.KEYCODE_STAR = 17;840/**841 * @constant842 * @default843 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_PERIOD}844 */845KeyEvent.KEYCODE_PERIOD = 56;846/**847 * @constant848 * @default849 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_TV_TELETEXT}850 */851KeyEvent.KEYCODE_TV_TELETEXT = 233;852/**853 * @constant854 * @default855 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_MEDIA_STEP_FORWARD}856 */857KeyEvent.KEYCODE_MEDIA_STEP_FORWARD = 274;858/**859 * @constant860 * @default861 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#FLAG_TRACKING}862 */863KeyEvent.FLAG_TRACKING = 512;864/**865 * @constant866 * @default867 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_MEDIA_NEXT}868 */869KeyEvent.KEYCODE_MEDIA_NEXT = 87;870/**871 * @constant872 * @default873 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_NUMPAD_LEFT_PAREN}874 */875KeyEvent.KEYCODE_NUMPAD_LEFT_PAREN = 162;876/**877 * @constant878 * @default879 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_TV_POWER}880 */881KeyEvent.KEYCODE_TV_POWER = 177;882/**883 * @constant884 * @default885 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_NUMPAD_0}886 */887KeyEvent.KEYCODE_NUMPAD_0 = 144;888/**889 * @constant890 * @default891 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_TAB}892 */893KeyEvent.KEYCODE_TAB = 61;894/**895 * @constant896 * @default897 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_NUMPAD_1}898 */899KeyEvent.KEYCODE_NUMPAD_1 = 145;900/**901 * @constant902 * @default903 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_NUMPAD_COMMA}904 */905KeyEvent.KEYCODE_NUMPAD_COMMA = 159;906/**907 * @constant908 * @default909 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_NUMPAD_2}910 */911KeyEvent.KEYCODE_NUMPAD_2 = 146;912/**913 * @constant914 * @default915 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BUTTON_MODE}916 */917KeyEvent.KEYCODE_BUTTON_MODE = 110;918/**919 * @constant920 * @default921 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_NUMPAD_3}922 */923KeyEvent.KEYCODE_NUMPAD_3 = 147;924/**925 * @constant926 * @default927 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_NUMPAD_4}928 */929KeyEvent.KEYCODE_NUMPAD_4 = 148;930/**931 * @constant932 * @default933 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_FUNCTION}934 */935KeyEvent.KEYCODE_FUNCTION = 119;936/**937 * @constant938 * @default939 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_NUMPAD_5}940 */941KeyEvent.KEYCODE_NUMPAD_5 = 149;942/**943 * @constant944 * @default945 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_TV_INPUT_COMPOSITE_2}946 */947KeyEvent.KEYCODE_TV_INPUT_COMPOSITE_2 = 248;948/**949 * @constant950 * @default951 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_NUMPAD_6}952 */953KeyEvent.KEYCODE_NUMPAD_6 = 150;954/**955 * @constant956 * @default957 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_TV_INPUT_COMPOSITE_1}958 */959KeyEvent.KEYCODE_TV_INPUT_COMPOSITE_1 = 247;960/**961 * @constant962 * @default963 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_NUMPAD_7}964 */965KeyEvent.KEYCODE_NUMPAD_7 = 151;966/**967 * @constant968 * @default969 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_NUMPAD_8}970 */971KeyEvent.KEYCODE_NUMPAD_8 = 152;972/**973 * @constant974 * @default975 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_NUMPAD_9}976 */977KeyEvent.KEYCODE_NUMPAD_9 = 153;978/**979 * @constant980 * @default981 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_VOICE_ASSIST}982 */983KeyEvent.KEYCODE_VOICE_ASSIST = 231;984/**985 * @constant986 * @default987 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_META_RIGHT}988 */989KeyEvent.KEYCODE_META_RIGHT = 118;990/**991 * @constant992 * @default993 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_MUHENKAN}994 */995KeyEvent.KEYCODE_MUHENKAN = 213;996/**997 * @constant998 * @default999 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_MOVE_END}1000 */1001KeyEvent.KEYCODE_MOVE_END = 123;1002/**1003 * @constant1004 * @default1005 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_SYM}1006 */1007KeyEvent.KEYCODE_SYM = 63;1008/**1009 * @constant1010 * @default1011 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_F9}1012 */1013KeyEvent.KEYCODE_F9 = 139;1014/**1015 * @constant1016 * @default1017 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_DPAD_UP}1018 */1019KeyEvent.KEYCODE_DPAD_UP = 19;1020/**1021 * @constant1022 * @default1023 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_CTRL_RIGHT}1024 */1025KeyEvent.KEYCODE_CTRL_RIGHT = 114;1026/**1027 * @constant1028 * @default1029 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_F7}1030 */1031KeyEvent.KEYCODE_F7 = 137;1032/**1033 * @constant1034 * @default1035 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_F8}1036 */1037KeyEvent.KEYCODE_F8 = 138;1038/**1039 * @constant1040 * @default1041 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_F5}1042 */1043KeyEvent.KEYCODE_F5 = 135;1044/**1045 * @constant1046 * @default1047 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_F6}1048 */1049KeyEvent.KEYCODE_F6 = 136;1050/**1051 * @constant1052 * @default1053 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#MAX_KEYCODE}1054 */1055KeyEvent.MAX_KEYCODE = 84;1056/**1057 * @constant1058 * @default1059 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_F3}1060 */1061KeyEvent.KEYCODE_F3 = 133;1062/**1063 * @constant1064 * @default1065 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_F4}1066 */1067KeyEvent.KEYCODE_F4 = 134;1068/**1069 * @constant1070 * @default1071 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_PAGE_DOWN}1072 */1073KeyEvent.KEYCODE_PAGE_DOWN = 93;1074/**1075 * @constant1076 * @default1077 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_Y}1078 */1079KeyEvent.KEYCODE_Y = 53;1080/**1081 * @constant1082 * @default1083 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#META_ALT_RIGHT_ON}1084 */1085KeyEvent.META_ALT_RIGHT_ON = 32;1086/**1087 * @constant1088 * @default1089 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_Z}1090 */1091KeyEvent.KEYCODE_Z = 54;1092/**1093 * @constant1094 * @default1095 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_W}1096 */1097KeyEvent.KEYCODE_W = 51;1098/**1099 * @constant1100 * @default1101 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_X}1102 */1103KeyEvent.KEYCODE_X = 52;1104/**1105 * @constant1106 * @default1107 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_U}1108 */1109KeyEvent.KEYCODE_U = 49;1110/**1111 * @constant1112 * @default1113 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_MEDIA_FAST_FORWARD}1114 */1115KeyEvent.KEYCODE_MEDIA_FAST_FORWARD = 90;1116/**1117 * @constant1118 * @default1119 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_V}1120 */1121KeyEvent.KEYCODE_V = 50;1122/**1123 * @constant1124 * @default1125 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_S}1126 */1127KeyEvent.KEYCODE_S = 47;1128/**1129 * @constant1130 * @default1131 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_T}1132 */1133KeyEvent.KEYCODE_T = 48;1134/**1135 * @constant1136 * @default1137 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#FLAG_LONG_PRESS}1138 */1139KeyEvent.FLAG_LONG_PRESS = 128;1140/**1141 * @constant1142 * @default1143 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_MEDIA_RECORD}1144 */1145KeyEvent.KEYCODE_MEDIA_RECORD = 130;1146/**1147 * @constant1148 * @default1149 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_ESCAPE}1150 */1151KeyEvent.KEYCODE_ESCAPE = 111;1152/**1153 * @constant1154 * @default1155 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_META_LEFT}1156 */1157KeyEvent.KEYCODE_META_LEFT = 117;1158/**1159 * @constant1160 * @default1161 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#FLAG_VIRTUAL_HARD_KEY}1162 */1163KeyEvent.FLAG_VIRTUAL_HARD_KEY = 64;1164/**1165 * @constant1166 * @default1167 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_MUTE}1168 */1169KeyEvent.KEYCODE_MUTE = 91;1170/**1171 * @constant1172 * @default1173 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_PAIRING}1174 */1175KeyEvent.KEYCODE_PAIRING = 225;1176/**1177 * @constant1178 * @default1179 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_F1}1180 */1181KeyEvent.KEYCODE_F1 = 131;1182/**1183 * @constant1184 * @default1185 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_F2}1186 */1187KeyEvent.KEYCODE_F2 = 132;1188/**1189 * @constant1190 * @default1191 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_SWITCH_CHARSET}1192 */1193KeyEvent.KEYCODE_SWITCH_CHARSET = 95;1194/**1195 * @constant1196 * @default1197 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_TV_ZOOM_MODE}1198 */1199KeyEvent.KEYCODE_TV_ZOOM_MODE = 255;1200/**1201 * @constant1202 * @default1203 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_PROG_RED}1204 */1205KeyEvent.KEYCODE_PROG_RED = 183;1206/**1207 * @constant1208 * @default1209 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_PROG_GREEN}1210 */1211KeyEvent.KEYCODE_PROG_GREEN = 184;1212/**1213 * @constant1214 * @default1215 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_YEN}1216 */1217KeyEvent.KEYCODE_YEN = 216;1218/**1219 * @constant1220 * @default1221 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_TV_TERRESTRIAL_DIGITAL}1222 */1223KeyEvent.KEYCODE_TV_TERRESTRIAL_DIGITAL = 236;1224/**1225 * @constant1226 * @default1227 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_DPAD_CENTER}1228 */1229KeyEvent.KEYCODE_DPAD_CENTER = 23;1230/**1231 * @constant1232 * @default1233 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#FLAG_CANCELED_LONG_PRESS}1234 */1235KeyEvent.FLAG_CANCELED_LONG_PRESS = 256;1236/**1237 * @constant1238 * @default1239 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_F11}1240 */1241KeyEvent.KEYCODE_F11 = 141;1242/**1243 * @constant1244 * @default1245 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_F10}1246 */1247KeyEvent.KEYCODE_F10 = 140;1248/**1249 * @constant1250 * @default1251 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_NUMPAD_ADD}1252 */1253KeyEvent.KEYCODE_NUMPAD_ADD = 157;1254/**1255 * @constant1256 * @default1257 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_F12}1258 */1259KeyEvent.KEYCODE_F12 = 142;1260/**1261 * @constant1262 * @default1263 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_INSERT}1264 */1265KeyEvent.KEYCODE_INSERT = 124;1266/**1267 * @constant1268 * @default1269 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_AVR_POWER}1270 */1271KeyEvent.KEYCODE_AVR_POWER = 181;1272/**1273 * @constant1274 * @default1275 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BUTTON_THUMBL}1276 */1277KeyEvent.KEYCODE_BUTTON_THUMBL = 106;1278/**1279 * @constant1280 * @default1281 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BUTTON_THUMBR}1282 */1283KeyEvent.KEYCODE_BUTTON_THUMBR = 107;1284/**1285 * @constant1286 * @default1287 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_NUM_LOCK}1288 */1289KeyEvent.KEYCODE_NUM_LOCK = 143;1290/**1291 * @constant1292 * @default1293 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_VOLUME_MUTE}1294 */1295KeyEvent.KEYCODE_VOLUME_MUTE = 164;1296/**1297 * @constant1298 * @default1299 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_MEDIA_PREVIOUS}1300 */1301KeyEvent.KEYCODE_MEDIA_PREVIOUS = 88;1302/**1303 * @constant1304 * @default1305 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#META_META_LEFT_ON}1306 */1307KeyEvent.META_META_LEFT_ON = 131072;1308/**1309 * @constant1310 * @default1311 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BOOKMARK}1312 */1313KeyEvent.KEYCODE_BOOKMARK = 174;1314/**1315 * @constant1316 * @default1317 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#META_CTRL_LEFT_ON}1318 */1319KeyEvent.META_CTRL_LEFT_ON = 8192;1320/**1321 * @constant1322 * @default1323 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_TV_INPUT_VGA_1}1324 */1325KeyEvent.KEYCODE_TV_INPUT_VGA_1 = 251;1326/**1327 * @constant1328 * @default1329 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#META_SCROLL_LOCK_ON}1330 */1331KeyEvent.META_SCROLL_LOCK_ON = 4194304;1332/**1333 * @constant1334 * @default1335 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#META_SHIFT_ON}1336 */1337KeyEvent.META_SHIFT_ON = 1;1338/**1339 * @constant1340 * @default1341 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_MEDIA_AUDIO_TRACK}1342 */1343KeyEvent.KEYCODE_MEDIA_AUDIO_TRACK = 222;1344/**1345 * @constant1346 * @default1347 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_3D_MODE}1348 */1349KeyEvent.KEYCODE_3D_MODE = 206;1350/**1351 * @constant1352 * @default1353 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_EISU}1354 */1355KeyEvent.KEYCODE_EISU = 212;1356/**1357 * @constant1358 * @default1359 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BREAK}1360 */1361KeyEvent.KEYCODE_BREAK = 121;1362/**1363 * @constant1364 * @default1365 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#FLAG_EDITOR_ACTION}1366 */1367KeyEvent.FLAG_EDITOR_ACTION = 16;1368/**1369 * @constant1370 * @default1371 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_MEDIA_SKIP_BACKWARD}1372 */1373KeyEvent.KEYCODE_MEDIA_SKIP_BACKWARD = 273;1374/**1375 * @constant1376 * @default1377 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_TV_MEDIA_CONTEXT_MENU}1378 */1379KeyEvent.KEYCODE_TV_MEDIA_CONTEXT_MENU = 257;1380/**1381 * @constant1382 * @default1383 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_MEDIA_STEP_BACKWARD}1384 */1385KeyEvent.KEYCODE_MEDIA_STEP_BACKWARD = 275;1386/**1387 * @constant1388 * @default1389 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_FORWARD_DEL}1390 */1391KeyEvent.KEYCODE_FORWARD_DEL = 112;1392/**1393 * @constant1394 * @default1395 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_CALENDAR}1396 */1397KeyEvent.KEYCODE_CALENDAR = 208;1398/**1399 * @constant1400 * @default1401 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_DPAD_RIGHT}1402 */1403KeyEvent.KEYCODE_DPAD_RIGHT = 22;1404/**1405 * @constant1406 * @default1407 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#ACTION_DOWN}1408 */1409KeyEvent.ACTION_DOWN = 0;1410/**1411 * @constant1412 * @default1413 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_ZOOM_OUT}1414 */1415KeyEvent.KEYCODE_ZOOM_OUT = 169;1416/**1417 * @constant1418 * @default1419 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_MINUS}1420 */1421KeyEvent.KEYCODE_MINUS = 69;1422/**1423 * @constant1424 * @default1425 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_SYSRQ}1426 */1427KeyEvent.KEYCODE_SYSRQ = 120;1428/**1429 * @constant1430 * @default1431 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_NUMPAD_EQUALS}1432 */1433KeyEvent.KEYCODE_NUMPAD_EQUALS = 161;1434/**1435 * @constant1436 * @default1437 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_COMMA}1438 */1439KeyEvent.KEYCODE_COMMA = 55;1440/**1441 * @constant1442 * @default1443 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_DPAD_LEFT}1444 */1445KeyEvent.KEYCODE_DPAD_LEFT = 21;1446/**1447 * @constant1448 * @default1449 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_ZENKAKU_HANKAKU}1450 */1451KeyEvent.KEYCODE_ZENKAKU_HANKAKU = 211;1452/**1453 * @constant1454 * @default1455 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#META_META_MASK}1456 */1457KeyEvent.META_META_MASK = 458752;1458/**1459 * @constant1460 * @default1461 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_UNKNOWN}1462 */1463KeyEvent.KEYCODE_UNKNOWN = 0;1464/**1465 * @constant1466 * @default1467 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#META_CAPS_LOCK_ON}1468 */1469KeyEvent.META_CAPS_LOCK_ON = 1048576;1470/**1471 * @constant1472 * @default1473 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_SHIFT_LEFT}1474 */1475KeyEvent.KEYCODE_SHIFT_LEFT = 59;1476/**1477 * @constant1478 * @default1479 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#META_CTRL_ON}1480 */1481KeyEvent.META_CTRL_ON = 4096;1482/**1483 * @constant1484 * @default1485 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_NUMPAD_SUBTRACT}1486 */1487KeyEvent.KEYCODE_NUMPAD_SUBTRACT = 156;1488/**1489 * @constant1490 * @default1491 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#ACTION_MULTIPLE}1492 */1493KeyEvent.ACTION_MULTIPLE = 2;1494/**1495 * @constant1496 * @default1497 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_LEFT_BRACKET}1498 */1499KeyEvent.KEYCODE_LEFT_BRACKET = 71;1500/**1501 * @constant1502 * @default1503 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_NUMPAD_DIVIDE}1504 */1505KeyEvent.KEYCODE_NUMPAD_DIVIDE = 154;1506/**1507 * @constant1508 * @default1509 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_APP_SWITCH}1510 */1511KeyEvent.KEYCODE_APP_SWITCH = 187;1512/**1513 * @constant1514 * @default1515 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_PLUS}1516 */1517KeyEvent.KEYCODE_PLUS = 81;1518/**1519 * @constant1520 * @default1521 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_TV_AUDIO_DESCRIPTION_MIX_DOWN}1522 */1523KeyEvent.KEYCODE_TV_AUDIO_DESCRIPTION_MIX_DOWN = 254;1524/**1525 * @constant1526 * @default1527 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_MEDIA_EJECT}1528 */1529KeyEvent.KEYCODE_MEDIA_EJECT = 129;1530/**1531 * @constant1532 * @default1533 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#FLAG_FROM_SYSTEM}1534 */1535KeyEvent.FLAG_FROM_SYSTEM = 8;1536/**1537 * @constant1538 * @default1539 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_PROG_BLUE}1540 */1541KeyEvent.KEYCODE_PROG_BLUE = 186;1542/**1543 * @constant1544 * @default1545 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#FLAG_KEEP_TOUCH_MODE}1546 */1547KeyEvent.FLAG_KEEP_TOUCH_MODE = 4;1548/**1549 * @constant1550 * @default1551 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_GRAVE}1552 */1553KeyEvent.KEYCODE_GRAVE = 68;1554/**1555 * @constant1556 * @default1557 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_HEADSETHOOK}1558 */1559KeyEvent.KEYCODE_HEADSETHOOK = 79;1560/**1561 * @constant1562 * @default1563 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#FLAG_CANCELED}1564 */1565KeyEvent.FLAG_CANCELED = 32;1566/**1567 * @constant1568 * @default1569 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_TV_SATELLITE_SERVICE}1570 */1571KeyEvent.KEYCODE_TV_SATELLITE_SERVICE = 240;1572/**1573 * @constant1574 * @default1575 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#META_CTRL_MASK}1576 */1577KeyEvent.META_CTRL_MASK = 28672;1578/**1579 * @constant1580 * @default1581 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_CALCULATOR}1582 */1583KeyEvent.KEYCODE_CALCULATOR = 210;1584/**1585 * @constant1586 * @default1587 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_NAVIGATE_IN}1588 */1589KeyEvent.KEYCODE_NAVIGATE_IN = 262;1590/**1591 * @constant1592 * @default1593 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_EXPLORER}1594 */1595KeyEvent.KEYCODE_EXPLORER = 64;1596/**1597 * @constant1598 * @default1599 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_SLASH}1600 */1601KeyEvent.KEYCODE_SLASH = 76;1602/**1603 * @constant1604 * @default1605 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#META_META_ON}1606 */1607KeyEvent.META_META_ON = 65536;1608/**1609 * @constant1610 * @default1611 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_1}1612 */1613KeyEvent.KEYCODE_1 = 8;1614/**1615 * @constant1616 * @default1617 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BUTTON_14}1618 */1619KeyEvent.KEYCODE_BUTTON_14 = 201;1620/**1621 * @constant1622 * @default1623 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_2}1624 */1625KeyEvent.KEYCODE_2 = 9;1626/**1627 * @constant1628 * @default1629 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BUTTON_13}1630 */1631KeyEvent.KEYCODE_BUTTON_13 = 200;1632/**1633 * @constant1634 * @default1635 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_SCROLL_LOCK}1636 */1637KeyEvent.KEYCODE_SCROLL_LOCK = 116;1638/**1639 * @constant1640 * @default1641 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BUTTON_16}1642 */1643KeyEvent.KEYCODE_BUTTON_16 = 203;1644/**1645 * @constant1646 * @default1647 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_0}1648 */1649KeyEvent.KEYCODE_0 = 7;1650/**1651 * @constant1652 * @default1653 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BUTTON_15}1654 */1655KeyEvent.KEYCODE_BUTTON_15 = 202;1656/**1657 * @constant1658 * @default1659 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_TV_SATELLITE_BS}1660 */1661KeyEvent.KEYCODE_TV_SATELLITE_BS = 238;1662/**1663 * @constant1664 * @default1665 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BUTTON_10}1666 */1667KeyEvent.KEYCODE_BUTTON_10 = 197;1668/**1669 * @constant1670 * @default1671 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BUTTON_R1}1672 */1673KeyEvent.KEYCODE_BUTTON_R1 = 103;1674/**1675 * @constant1676 * @default1677 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BUTTON_12}1678 */1679KeyEvent.KEYCODE_BUTTON_12 = 199;1680/**1681 * @constant1682 * @default1683 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_MUSIC}1684 */1685KeyEvent.KEYCODE_MUSIC = 209;1686/**1687 * @constant1688 * @default1689 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BUTTON_11}1690 */1691KeyEvent.KEYCODE_BUTTON_11 = 198;1692/**1693 * @constant1694 * @default1695 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BUTTON_R2}1696 */1697KeyEvent.KEYCODE_BUTTON_R2 = 105;1698/**1699 * @constant1700 * @default1701 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#META_ALT_LEFT_ON}1702 */1703KeyEvent.META_ALT_LEFT_ON = 16;1704/**1705 * @constant1706 * @default1707 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_VOLUME_DOWN}1708 */1709KeyEvent.KEYCODE_VOLUME_DOWN = 25;1710/**1711 * @constant1712 * @default1713 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_TV_DATA_SERVICE}1714 */1715KeyEvent.KEYCODE_TV_DATA_SERVICE = 230;1716/**1717 * @constant1718 * @default1719 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_NAVIGATE_OUT}1720 */1721KeyEvent.KEYCODE_NAVIGATE_OUT = 263;1722/**1723 * @constant1724 * @default1725 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_KANA}1726 */1727KeyEvent.KEYCODE_KANA = 218;1728/**1729 * @constant1730 * @default1731 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_I}1732 */1733KeyEvent.KEYCODE_I = 37;1734/**1735 * @constant1736 * @default1737 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_J}1738 */1739KeyEvent.KEYCODE_J = 38;1740/**1741 * @constant1742 * @default1743 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_G}1744 */1745KeyEvent.KEYCODE_G = 35;1746/**1747 * @constant1748 * @default1749 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_H}1750 */1751KeyEvent.KEYCODE_H = 36;1752/**1753 * @constant1754 * @default1755 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_E}1756 */1757KeyEvent.KEYCODE_E = 33;1758/**1759 * @constant1760 * @default1761 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_MEDIA_STOP}1762 */1763KeyEvent.KEYCODE_MEDIA_STOP = 86;1764/**1765 * @constant1766 * @default1767 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_F}1768 */1769KeyEvent.KEYCODE_F = 34;1770/**1771 * @constant1772 * @default1773 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_C}1774 */1775KeyEvent.KEYCODE_C = 31;1776/**1777 * @constant1778 * @default1779 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#META_SHIFT_LEFT_ON}1780 */1781KeyEvent.META_SHIFT_LEFT_ON = 64;1782/**1783 * @constant1784 * @default1785 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_D}1786 */1787KeyEvent.KEYCODE_D = 32;1788/**1789 * @constant1790 * @default1791 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_Q}1792 */1793KeyEvent.KEYCODE_Q = 45;1794/**1795 * @constant1796 * @default1797 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_NUMPAD_DOT}1798 */1799KeyEvent.KEYCODE_NUMPAD_DOT = 158;1800/**1801 * @constant1802 * @default1803 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_R}1804 */1805KeyEvent.KEYCODE_R = 46;1806/**1807 * @constant1808 * @default1809 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_O}1810 */1811KeyEvent.KEYCODE_O = 43;1812/**1813 * @constant1814 * @default1815 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_P}1816 */1817KeyEvent.KEYCODE_P = 44;1818/**1819 * @constant1820 * @default1821 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_M}1822 */1823KeyEvent.KEYCODE_M = 41;1824/**1825 * @constant1826 * @default1827 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_MEDIA_PAUSE}1828 */1829KeyEvent.KEYCODE_MEDIA_PAUSE = 127;1830/**1831 * @constant1832 * @default1833 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_N}1834 */1835KeyEvent.KEYCODE_N = 42;1836/**1837 * @constant1838 * @default1839 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_K}1840 */1841KeyEvent.KEYCODE_K = 39;1842/**1843 * @constant1844 * @default1845 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_L}1846 */1847KeyEvent.KEYCODE_L = 40;1848/**1849 * @constant1850 * @default1851 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_9}1852 */1853KeyEvent.KEYCODE_9 = 16;1854/**1855 * @constant1856 * @default1857 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_MENU}1858 */1859KeyEvent.KEYCODE_MENU = 82;1860/**1861 * @constant1862 * @default1863 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_7}1864 */1865KeyEvent.KEYCODE_7 = 14;1866/**1867 * @constant1868 * @default1869 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_8}1870 */1871KeyEvent.KEYCODE_8 = 15;1872/**1873 * @constant1874 * @default1875 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_5}1876 */1877KeyEvent.KEYCODE_5 = 12;1878/**1879 * @constant1880 * @default1881 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_6}1882 */1883KeyEvent.KEYCODE_6 = 13;1884/**1885 * @constant1886 * @default1887 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_CAMERA}1888 */1889KeyEvent.KEYCODE_CAMERA = 27;1890/**1891 * @constant1892 * @default1893 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_3}1894 */1895KeyEvent.KEYCODE_3 = 10;1896/**1897 * @constant1898 * @default1899 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_SEARCH}1900 */1901KeyEvent.KEYCODE_SEARCH = 84;1902/**1903 * @constant1904 * @default1905 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_4}1906 */1907KeyEvent.KEYCODE_4 = 11;1908/**1909 * @constant1910 * @default1911 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_A}1912 */1913KeyEvent.KEYCODE_A = 29;1914/**1915 * @constant1916 * @default1917 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_B}1918 */1919KeyEvent.KEYCODE_B = 30;1920/**1921 * @constant1922 * @default1923 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#META_SHIFT_RIGHT_ON}1924 */1925KeyEvent.META_SHIFT_RIGHT_ON = 128;1926// Inner classes1927Object.defineProperty(KeyEvent, 'Callback', {1928	get: function() {1929		return require('android.view.KeyEvent$Callback');1930	},1931	enumerable: true1932});1933Object.defineProperty(KeyEvent, 'DispatcherState', {1934	get: function() {1935		return require('android.view.KeyEvent$DispatcherState');1936	},1937	enumerable: true1938});1939// Static fields1940// http://developer.android.com/reference/android/view/KeyEvent.html#CREATOR1941Object.defineProperty(KeyEvent, 'CREATOR', {1942	get: function() {1943		if (!this.class) return null;1944		var result = this.class.getNativeField('CREATOR');1945		if (result == null) {1946			return null;1947		}1948		// Wrap result if it's not a primitive type?1949		if (result.apiName) {1950			if (result.apiName === 'android.view.KeyEvent') {1951				return new KeyEvent(result);1952			} else {1953				var ctor = require(result.apiName);1954				return new ctor(result);1955			}1956		}1957		return result;1958	},1959	enumerable: true1960});1961// Instance Fields1962// Static methods1963/**1964 * TODO Fill out docs more...1965 * @function getModifierMetaStateMask1966 * @static1967 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#getModifierMetaStateMask()}1968 **/1969KeyEvent.getModifierMetaStateMask = function() {1970	if (!this.class) return null;1971	var result = this.class.callNativeFunction({1972		func: 'getModifierMetaStateMask',1973		instanceMethod: false,1974		args: Array.prototype.slice.call(arguments)1975	});1976	if (result == null) {1977		return null;1978	}1979	// Wrap result if it's not a primitive type?1980	if (result.apiName) {1981		if (result.apiName === 'android.view.KeyEvent') {1982			return new KeyEvent(result);1983		} else {1984			var ctor = require(result.apiName);1985			return new ctor(result);1986		}1987	}1988	return result;1989};1990/**1991 * TODO Fill out docs more...1992 * @function isModifierKey1993 * @static1994 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#isModifierKey(int)}1995 **/1996KeyEvent.isModifierKey = function() {1997	if (!this.class) return null;1998	var result = this.class.callNativeFunction({1999		func: 'isModifierKey',2000		instanceMethod: false,2001		args: Array.prototype.slice.call(arguments)2002	});2003	if (result == null) {2004		return null;2005	}2006	// Wrap result if it's not a primitive type?2007	if (result.apiName) {2008		if (result.apiName === 'android.view.KeyEvent') {2009			return new KeyEvent(result);2010		} else {2011			var ctor = require(result.apiName);2012			return new ctor(result);2013		}2014	}2015	return result;2016};2017/**2018 * TODO Fill out docs more...2019 * @function keyCodeToString2020 * @static2021 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#keyCodeToString(int)}2022 **/2023KeyEvent.keyCodeToString = function() {2024	if (!this.class) return null;2025	var result = this.class.callNativeFunction({2026		func: 'keyCodeToString',2027		instanceMethod: false,2028		args: Array.prototype.slice.call(arguments)2029	});2030	if (result == null) {2031		return null;2032	}2033	// Wrap result if it's not a primitive type?2034	if (result.apiName) {2035		if (result.apiName === 'android.view.KeyEvent') {2036			return new KeyEvent(result);2037		} else {2038			var ctor = require(result.apiName);2039			return new ctor(result);2040		}2041	}2042	return result;2043};2044/**2045 * TODO Fill out docs more...2046 * @function normalizeMetaState2047 * @static2048 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#normalizeMetaState(int)}2049 **/2050KeyEvent.normalizeMetaState = function() {2051	if (!this.class) return null;2052	var result = this.class.callNativeFunction({2053		func: 'normalizeMetaState',2054		instanceMethod: false,2055		args: Array.prototype.slice.call(arguments)2056	});2057	if (result == null) {2058		return null;2059	}2060	// Wrap result if it's not a primitive type?2061	if (result.apiName) {2062		if (result.apiName === 'android.view.KeyEvent') {2063			return new KeyEvent(result);2064		} else {2065			var ctor = require(result.apiName);2066			return new ctor(result);2067		}2068	}2069	return result;2070};2071/**2072 * TODO Fill out docs more...2073 * @function getDeadChar2074 * @static2075 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#getDeadChar(int, int)}2076 **/2077KeyEvent.getDeadChar = function() {2078	if (!this.class) return null;2079	var result = this.class.callNativeFunction({2080		func: 'getDeadChar',2081		instanceMethod: false,2082		args: Array.prototype.slice.call(arguments)2083	});2084	if (result == null) {2085		return null;2086	}2087	// Wrap result if it's not a primitive type?2088	if (result.apiName) {2089		if (result.apiName === 'android.view.KeyEvent') {2090			return new KeyEvent(result);2091		} else {2092			var ctor = require(result.apiName);2093			return new ctor(result);2094		}2095	}2096	return result;2097};2098/**2099 * TODO Fill out docs more...2100 * @function metaStateHasModifiers2101 * @static2102 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#metaStateHasModifiers(int, int)}2103 **/2104KeyEvent.metaStateHasModifiers = function() {2105	if (!this.class) return null;2106	var result = this.class.callNativeFunction({2107		func: 'metaStateHasModifiers',2108		instanceMethod: false,2109		args: Array.prototype.slice.call(arguments)2110	});2111	if (result == null) {2112		return null;2113	}2114	// Wrap result if it's not a primitive type?2115	if (result.apiName) {2116		if (result.apiName === 'android.view.KeyEvent') {2117			return new KeyEvent(result);2118		} else {2119			var ctor = require(result.apiName);2120			return new ctor(result);2121		}2122	}2123	return result;2124};2125/**2126 * TODO Fill out docs more...2127 * @function metaStateHasNoModifiers2128 * @static2129 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#metaStateHasNoModifiers(int)}2130 **/2131KeyEvent.metaStateHasNoModifiers = function() {2132	if (!this.class) return null;2133	var result = this.class.callNativeFunction({2134		func: 'metaStateHasNoModifiers',2135		instanceMethod: false,2136		args: Array.prototype.slice.call(arguments)2137	});2138	if (result == null) {2139		return null;2140	}2141	// Wrap result if it's not a primitive type?2142	if (result.apiName) {2143		if (result.apiName === 'android.view.KeyEvent') {2144			return new KeyEvent(result);2145		} else {2146			var ctor = require(result.apiName);2147			return new ctor(result);2148		}2149	}2150	return result;2151};2152/**2153 * TODO Fill out docs more...2154 * @function changeTimeRepeat2155 * @static2156 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#changeTimeRepeat(android.view.KeyEvent, long, int)}2157 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#changeTimeRepeat(android.view.KeyEvent, long, int, int)}2158 **/2159KeyEvent.changeTimeRepeat = function() {2160	if (!this.class) return null;2161	var result = this.class.callNativeFunction({2162		func: 'changeTimeRepeat',2163		instanceMethod: false,2164		args: Array.prototype.slice.call(arguments)2165	});2166	if (result == null) {2167		return null;2168	}2169	// Wrap result if it's not a primitive type?2170	if (result.apiName) {2171		if (result.apiName === 'android.view.KeyEvent') {2172			return new KeyEvent(result);2173		} else {2174			var ctor = require(result.apiName);2175			return new ctor(result);2176		}2177	}2178	return result;2179};2180/**2181 * TODO Fill out docs more...2182 * @function getMaxKeyCode2183 * @static2184 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#getMaxKeyCode()}2185 **/2186KeyEvent.getMaxKeyCode = function() {2187	if (!this.class) return null;2188	var result = this.class.callNativeFunction({2189		func: 'getMaxKeyCode',2190		instanceMethod: false,2191		args: Array.prototype.slice.call(arguments)2192	});2193	if (result == null) {2194		return null;2195	}2196	// Wrap result if it's not a primitive type?2197	if (result.apiName) {2198		if (result.apiName === 'android.view.KeyEvent') {2199			return new KeyEvent(result);2200		} else {2201			var ctor = require(result.apiName);2202			return new ctor(result);2203		}2204	}2205	return result;2206};2207/**2208 * TODO Fill out docs more...2209 * @function changeFlags2210 * @static2211 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#changeFlags(android.view.KeyEvent, int)}2212 **/2213KeyEvent.changeFlags = function() {2214	if (!this.class) return null;2215	var result = this.class.callNativeFunction({2216		func: 'changeFlags',2217		instanceMethod: false,2218		args: Array.prototype.slice.call(arguments)2219	});2220	if (result == null) {2221		return null;2222	}2223	// Wrap result if it's not a primitive type?2224	if (result.apiName) {2225		if (result.apiName === 'android.view.KeyEvent') {2226			return new KeyEvent(result);2227		} else {2228			var ctor = require(result.apiName);2229			return new ctor(result);2230		}2231	}2232	return result;2233};2234/**2235 * TODO Fill out docs more...2236 * @function keyCodeFromString2237 * @static2238 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#keyCodeFromString(java.lang.String)}2239 **/2240KeyEvent.keyCodeFromString = function() {2241	if (!this.class) return null;2242	var result = this.class.callNativeFunction({2243		func: 'keyCodeFromString',2244		instanceMethod: false,2245		args: Array.prototype.slice.call(arguments)2246	});2247	if (result == null) {2248		return null;2249	}2250	// Wrap result if it's not a primitive type?2251	if (result.apiName) {2252		if (result.apiName === 'android.view.KeyEvent') {2253			return new KeyEvent(result);2254		} else {2255			var ctor = require(result.apiName);2256			return new ctor(result);2257		}2258	}2259	return result;2260};2261/**2262 * TODO Fill out docs more...2263 * @function changeAction2264 * @static2265 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#changeAction(android.view.KeyEvent, int)}2266 **/2267KeyEvent.changeAction = function() {2268	if (!this.class) return null;2269	var result = this.class.callNativeFunction({2270		func: 'changeAction',2271		instanceMethod: false,2272		args: Array.prototype.slice.call(arguments)2273	});2274	if (result == null) {2275		return null;2276	}2277	// Wrap result if it's not a primitive type?2278	if (result.apiName) {2279		if (result.apiName === 'android.view.KeyEvent') {2280			return new KeyEvent(result);2281		} else {2282			var ctor = require(result.apiName);2283			return new ctor(result);2284		}2285	}2286	return result;2287};2288/**2289 * TODO Fill out docs more...2290 * @function isGamepadButton2291 * @static2292 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#isGamepadButton(int)}2293 **/2294KeyEvent.isGamepadButton = function() {2295	if (!this.class) return null;2296	var result = this.class.callNativeFunction({2297		func: 'isGamepadButton',2298		instanceMethod: false,2299		args: Array.prototype.slice.call(arguments)2300	});2301	if (result == null) {2302		return null;2303	}2304	// Wrap result if it's not a primitive type?2305	if (result.apiName) {2306		if (result.apiName === 'android.view.KeyEvent') {2307			return new KeyEvent(result);2308		} else {2309			var ctor = require(result.apiName);2310			return new ctor(result);2311		}2312	}2313	return result;2314};2315// Instance methods2316/**2317 * TODO Fill out docs more...2318 * @function isCanceled2319 * @memberof2320 * @instance2321 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#isCanceled()}2322 **/2323KeyEvent.prototype.isCanceled = function() {2324	if (!this._hasPointer) return null;2325	var result = this.$native.callNativeFunction({2326		func: 'isCanceled',2327		instanceMethod: true,2328		args: Array.prototype.slice.call(arguments)2329	});2330	if (result == null) {2331		return null;2332	}2333	// Wrap result if it's not a primitive type?2334	if (result.apiName) {2335		if (result.apiName === 'android.view.KeyEvent') {2336			return new KeyEvent(result);2337		} else {2338			var ctor = require(result.apiName);2339			return new ctor(result);2340		}2341	}2342	return result;2343};2344/**2345 * TODO Fill out docs more...2346 * @function dispatch2347 * @memberof2348 * @instance2349 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#dispatch(android.view.KeyEvent$Callback)}2350 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#dispatch(android.view.KeyEvent$Callback, android.view.KeyEvent$DispatcherState, java.lang.Object)}2351 **/2352KeyEvent.prototype.dispatch = function() {2353	if (!this._hasPointer) return null;2354	var result = this.$native.callNativeFunction({2355		func: 'dispatch',2356		instanceMethod: true,2357		args: Array.prototype.slice.call(arguments)2358	});2359	if (result == null) {2360		return null;2361	}2362	// Wrap result if it's not a primitive type?2363	if (result.apiName) {2364		if (result.apiName === 'android.view.KeyEvent') {2365			return new KeyEvent(result);2366		} else {2367			var ctor = require(result.apiName);2368			return new ctor(result);2369		}2370	}2371	return result;2372};2373/**2374 * TODO Fill out docs more...2375 * @function isShiftPressed2376 * @memberof2377 * @instance2378 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#isShiftPressed()}2379 **/2380KeyEvent.prototype.isShiftPressed = function() {2381	if (!this._hasPointer) return null;2382	var result = this.$native.callNativeFunction({2383		func: 'isShiftPressed',2384		instanceMethod: true,2385		args: Array.prototype.slice.call(arguments)2386	});2387	if (result == null) {2388		return null;2389	}2390	// Wrap result if it's not a primitive type?2391	if (result.apiName) {2392		if (result.apiName === 'android.view.KeyEvent') {2393			return new KeyEvent(result);2394		} else {2395			var ctor = require(result.apiName);2396			return new ctor(result);2397		}2398	}2399	return result;2400};2401/**2402 * TODO Fill out docs more...2403 * @function isNumLockOn2404 * @memberof2405 * @instance2406 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#isNumLockOn()}2407 **/2408KeyEvent.prototype.isNumLockOn = function() {2409	if (!this._hasPointer) return null;2410	var result = this.$native.callNativeFunction({2411		func: 'isNumLockOn',2412		instanceMethod: true,2413		args: Array.prototype.slice.call(arguments)2414	});2415	if (result == null) {2416		return null;2417	}2418	// Wrap result if it's not a primitive type?2419	if (result.apiName) {2420		if (result.apiName === 'android.view.KeyEvent') {2421			return new KeyEvent(result);2422		} else {2423			var ctor = require(result.apiName);2424			return new ctor(result);2425		}2426	}2427	return result;2428};2429/**2430 * TODO Fill out docs more...2431 * @function isLongPress2432 * @memberof2433 * @instance2434 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#isLongPress()}2435 **/2436KeyEvent.prototype.isLongPress = function() {2437	if (!this._hasPointer) return null;2438	var result = this.$native.callNativeFunction({2439		func: 'isLongPress',2440		instanceMethod: true,2441		args: Array.prototype.slice.call(arguments)2442	});2443	if (result == null) {2444		return null;2445	}2446	// Wrap result if it's not a primitive type?2447	if (result.apiName) {2448		if (result.apiName === 'android.view.KeyEvent') {2449			return new KeyEvent(result);2450		} else {2451			var ctor = require(result.apiName);2452			return new ctor(result);2453		}2454	}2455	return result;2456};2457/**2458 * TODO Fill out docs more...2459 * @function getKeyCode2460 * @memberof2461 * @instance2462 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#getKeyCode()}2463 **/2464KeyEvent.prototype.getKeyCode = function() {2465	if (!this._hasPointer) return null;2466	var result = this.$native.callNativeFunction({2467		func: 'getKeyCode',2468		instanceMethod: true,2469		args: Array.prototype.slice.call(arguments)2470	});2471	if (result == null) {2472		return null;2473	}2474	// Wrap result if it's not a primitive type?2475	if (result.apiName) {2476		if (result.apiName === 'android.view.KeyEvent') {2477			return new KeyEvent(result);2478		} else {2479			var ctor = require(result.apiName);2480			return new ctor(result);2481		}2482	}2483	return result;2484};2485/**2486 * TODO Fill out docs more...2487 * @function getCharacters2488 * @memberof2489 * @instance2490 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#getCharacters()}2491 **/2492KeyEvent.prototype.getCharacters = function() {2493	if (!this._hasPointer) return null;2494	var result = this.$native.callNativeFunction({2495		func: 'getCharacters',2496		instanceMethod: true,2497		args: Array.prototype.slice.call(arguments)2498	});2499	if (result == null) {2500		return null;2501	}2502	// Wrap result if it's not a primitive type?2503	if (result.apiName) {2504		if (result.apiName === 'android.view.KeyEvent') {2505			return new KeyEvent(result);2506		} else {2507			var ctor = require(result.apiName);2508			return new ctor(result);2509		}2510	}2511	return result;2512};2513/**2514 * TODO Fill out docs more...2515 * @function getEventTime2516 * @memberof2517 * @instance2518 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#getEventTime()}2519 **/2520KeyEvent.prototype.getEventTime = function() {2521	if (!this._hasPointer) return null;2522	var result = this.$native.callNativeFunction({2523		func: 'getEventTime',2524		instanceMethod: true,2525		args: Array.prototype.slice.call(arguments)2526	});2527	if (result == null) {2528		return null;2529	}2530	// Wrap result if it's not a primitive type?2531	if (result.apiName) {2532		if (result.apiName === 'android.view.KeyEvent') {2533			return new KeyEvent(result);2534		} else {2535			var ctor = require(result.apiName);2536			return new ctor(result);2537		}2538	}2539	return result;2540};2541/**2542 * TODO Fill out docs more...2543 * @function getUnicodeChar2544 * @memberof2545 * @instance2546 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#getUnicodeChar()}2547 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#getUnicodeChar(int)}2548 **/2549KeyEvent.prototype.getUnicodeChar = function() {2550	if (!this._hasPointer) return null;2551	var result = this.$native.callNativeFunction({2552		func: 'getUnicodeChar',2553		instanceMethod: true,2554		args: Array.prototype.slice.call(arguments)2555	});2556	if (result == null) {2557		return null;2558	}2559	// Wrap result if it's not a primitive type?2560	if (result.apiName) {2561		if (result.apiName === 'android.view.KeyEvent') {2562			return new KeyEvent(result);2563		} else {2564			var ctor = require(result.apiName);2565			return new ctor(result);2566		}2567	}2568	return result;2569};2570/**2571 * TODO Fill out docs more...2572 * @function isSystem2573 * @memberof2574 * @instance2575 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#isSystem()}2576 **/2577KeyEvent.prototype.isSystem = function() {2578	if (!this._hasPointer) return null;2579	var result = this.$native.callNativeFunction({2580		func: 'isSystem',2581		instanceMethod: true,2582		args: Array.prototype.slice.call(arguments)2583	});2584	if (result == null) {2585		return null;2586	}2587	// Wrap result if it's not a primitive type?2588	if (result.apiName) {2589		if (result.apiName === 'android.view.KeyEvent') {2590			return new KeyEvent(result);2591		} else {2592			var ctor = require(result.apiName);2593			return new ctor(result);2594		}2595	}2596	return result;2597};2598/**2599 * TODO Fill out docs more...2600 * @function isMetaPressed2601 * @memberof2602 * @instance2603 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#isMetaPressed()}2604 **/2605KeyEvent.prototype.isMetaPressed = function() {2606	if (!this._hasPointer) return null;2607	var result = this.$native.callNativeFunction({2608		func: 'isMetaPressed',2609		instanceMethod: true,2610		args: Array.prototype.slice.call(arguments)2611	});2612	if (result == null) {2613		return null;2614	}2615	// Wrap result if it's not a primitive type?2616	if (result.apiName) {2617		if (result.apiName === 'android.view.KeyEvent') {2618			return new KeyEvent(result);2619		} else {2620			var ctor = require(result.apiName);2621			return new ctor(result);2622		}2623	}2624	return result;2625};2626/**2627 * TODO Fill out docs more...2628 * @function getSource2629 * @memberof2630 * @instance2631 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#getSource()}2632 **/2633KeyEvent.prototype.getSource = function() {2634	if (!this._hasPointer) return null;2635	var result = this.$native.callNativeFunction({2636		func: 'getSource',2637		instanceMethod: true,2638		args: Array.prototype.slice.call(arguments)2639	});2640	if (result == null) {2641		return null;2642	}2643	// Wrap result if it's not a primitive type?2644	if (result.apiName) {2645		if (result.apiName === 'android.view.KeyEvent') {2646			return new KeyEvent(result);2647		} else {2648			var ctor = require(result.apiName);2649			return new ctor(result);2650		}2651	}2652	return result;2653};2654/**2655 * TODO Fill out docs more...2656 * @function isScrollLockOn2657 * @memberof2658 * @instance2659 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#isScrollLockOn()}2660 **/2661KeyEvent.prototype.isScrollLockOn = function() {2662	if (!this._hasPointer) return null;2663	var result = this.$native.callNativeFunction({2664		func: 'isScrollLockOn',2665		instanceMethod: true,2666		args: Array.prototype.slice.call(arguments)2667	});2668	if (result == null) {2669		return null;2670	}2671	// Wrap result if it's not a primitive type?2672	if (result.apiName) {2673		if (result.apiName === 'android.view.KeyEvent') {2674			return new KeyEvent(result);2675		} else {2676			var ctor = require(result.apiName);2677			return new ctor(result);2678		}2679	}2680	return result;2681};2682/**2683 * TODO Fill out docs more...2684 * @function getFlags2685 * @memberof2686 * @instance2687 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#getFlags()}2688 **/2689KeyEvent.prototype.getFlags = function() {2690	if (!this._hasPointer) return null;2691	var result = this.$native.callNativeFunction({2692		func: 'getFlags',2693		instanceMethod: true,2694		args: Array.prototype.slice.call(arguments)2695	});2696	if (result == null) {2697		return null;2698	}2699	// Wrap result if it's not a primitive type?2700	if (result.apiName) {2701		if (result.apiName === 'android.view.KeyEvent') {2702			return new KeyEvent(result);2703		} else {2704			var ctor = require(result.apiName);2705			return new ctor(result);2706		}2707	}2708	return result;2709};2710/**2711 * TODO Fill out docs more...2712 * @function writeToParcel2713 * @memberof2714 * @instance2715 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#writeToParcel(android.os.Parcel, int)}2716 **/2717KeyEvent.prototype.writeToParcel = function() {2718	if (!this._hasPointer) return null;2719	var result = this.$native.callNativeFunction({2720		func: 'writeToParcel',2721		instanceMethod: true,2722		args: Array.prototype.slice.call(arguments)2723	});2724	if (result == null) {2725		return null;2726	}2727	// Wrap result if it's not a primitive type?2728	if (result.apiName) {2729		if (result.apiName === 'android.view.KeyEvent') {2730			return new KeyEvent(result);2731		} else {2732			var ctor = require(result.apiName);2733			return new ctor(result);2734		}2735	}2736	return result;2737};2738/**2739 * TODO Fill out docs more...2740 * @function getScanCode2741 * @memberof2742 * @instance2743 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#getScanCode()}2744 **/2745KeyEvent.prototype.getScanCode = function() {2746	if (!this._hasPointer) return null;2747	var result = this.$native.callNativeFunction({2748		func: 'getScanCode',2749		instanceMethod: true,2750		args: Array.prototype.slice.call(arguments)2751	});2752	if (result == null) {2753		return null;2754	}2755	// Wrap result if it's not a primitive type?2756	if (result.apiName) {2757		if (result.apiName === 'android.view.KeyEvent') {2758			return new KeyEvent(result);2759		} else {2760			var ctor = require(result.apiName);2761			return new ctor(result);2762		}2763	}2764	return result;2765};2766/**2767 * TODO Fill out docs more...2768 * @function setSource2769 * @memberof2770 * @instance2771 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#setSource(int)}2772 **/2773KeyEvent.prototype.setSource = function() {2774	if (!this._hasPointer) return null;2775	var result = this.$native.callNativeFunction({2776		func: 'setSource',2777		instanceMethod: true,2778		args: Array.prototype.slice.call(arguments)2779	});2780	if (result == null) {2781		return null;2782	}2783	// Wrap result if it's not a primitive type?2784	if (result.apiName) {2785		if (result.apiName === 'android.view.KeyEvent') {2786			return new KeyEvent(result);2787		} else {2788			var ctor = require(result.apiName);2789			return new ctor(result);2790		}2791	}2792	return result;2793};2794/**2795 * TODO Fill out docs more...2796 * @function isSymPressed2797 * @memberof2798 * @instance2799 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#isSymPressed()}2800 **/2801KeyEvent.prototype.isSymPressed = function() {2802	if (!this._hasPointer) return null;2803	var result = this.$native.callNativeFunction({2804		func: 'isSymPressed',2805		instanceMethod: true,2806		args: Array.prototype.slice.call(arguments)2807	});2808	if (result == null) {2809		return null;2810	}2811	// Wrap result if it's not a primitive type?2812	if (result.apiName) {2813		if (result.apiName === 'android.view.KeyEvent') {2814			return new KeyEvent(result);2815		} else {2816			var ctor = require(result.apiName);2817			return new ctor(result);2818		}2819	}2820	return result;2821};2822/**2823 * TODO Fill out docs more...2824 * @function getMatch2825 * @memberof2826 * @instance2827 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#getMatch(char[])}2828 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#getMatch(char[], int)}2829 **/2830KeyEvent.prototype.getMatch = function() {2831	if (!this._hasPointer) return null;2832	var result = this.$native.callNativeFunction({2833		func: 'getMatch',2834		instanceMethod: true,2835		args: Array.prototype.slice.call(arguments)2836	});2837	if (result == null) {2838		return null;2839	}2840	// Wrap result if it's not a primitive type?2841	if (result.apiName) {2842		if (result.apiName === 'android.view.KeyEvent') {2843			return new KeyEvent(result);2844		} else {2845			var ctor = require(result.apiName);2846			return new ctor(result);2847		}2848	}2849	return result;2850};2851/**2852 * TODO Fill out docs more...2853 * @function isPrintingKey2854 * @memberof2855 * @instance2856 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#isPrintingKey()}2857 **/2858KeyEvent.prototype.isPrintingKey = function() {2859	if (!this._hasPointer) return null;2860	var result = this.$native.callNativeFunction({2861		func: 'isPrintingKey',2862		instanceMethod: true,2863		args: Array.prototype.slice.call(arguments)2864	});2865	if (result == null) {2866		return null;2867	}2868	// Wrap result if it's not a primitive type?2869	if (result.apiName) {2870		if (result.apiName === 'android.view.KeyEvent') {2871			return new KeyEvent(result);2872		} else {2873			var ctor = require(result.apiName);2874			return new ctor(result);2875		}2876	}2877	return result;2878};2879/**2880 * TODO Fill out docs more...2881 * @function isCtrlPressed2882 * @memberof2883 * @instance2884 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#isCtrlPressed()}2885 **/2886KeyEvent.prototype.isCtrlPressed = function() {2887	if (!this._hasPointer) return null;2888	var result = this.$native.callNativeFunction({2889		func: 'isCtrlPressed',2890		instanceMethod: true,2891		args: Array.prototype.slice.call(arguments)2892	});2893	if (result == null) {2894		return null;2895	}2896	// Wrap result if it's not a primitive type?2897	if (result.apiName) {2898		if (result.apiName === 'android.view.KeyEvent') {2899			return new KeyEvent(result);2900		} else {2901			var ctor = require(result.apiName);2902			return new ctor(result);2903		}2904	}2905	return result;2906};2907/**2908 * TODO Fill out docs more...2909 * @function getNumber2910 * @memberof2911 * @instance2912 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#getNumber()}2913 **/2914KeyEvent.prototype.getNumber = function() {2915	if (!this._hasPointer) return null;2916	var result = this.$native.callNativeFunction({2917		func: 'getNumber',2918		instanceMethod: true,2919		args: Array.prototype.slice.call(arguments)2920	});2921	if (result == null) {2922		return null;2923	}2924	// Wrap result if it's not a primitive type?2925	if (result.apiName) {2926		if (result.apiName === 'android.view.KeyEvent') {2927			return new KeyEvent(result);2928		} else {2929			var ctor = require(result.apiName);2930			return new ctor(result);2931		}2932	}2933	return result;2934};2935/**2936 * TODO Fill out docs more...2937 * @function getKeyData2938 * @memberof2939 * @instance2940 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#getKeyData(android.view.KeyCharacterMap$KeyData)}2941 **/2942KeyEvent.prototype.getKeyData = function() {2943	if (!this._hasPointer) return null;2944	var result = this.$native.callNativeFunction({2945		func: 'getKeyData',2946		instanceMethod: true,2947		args: Array.prototype.slice.call(arguments)2948	});2949	if (result == null) {2950		return null;2951	}2952	// Wrap result if it's not a primitive type?2953	if (result.apiName) {2954		if (result.apiName === 'android.view.KeyEvent') {2955			return new KeyEvent(result);2956		} else {2957			var ctor = require(result.apiName);2958			return new ctor(result);2959		}2960	}2961	return result;2962};2963/**2964 * TODO Fill out docs more...2965 * @function getModifiers2966 * @memberof2967 * @instance2968 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#getModifiers()}2969 **/2970KeyEvent.prototype.getModifiers = function() {2971	if (!this._hasPointer) return null;2972	var result = this.$native.callNativeFunction({2973		func: 'getModifiers',2974		instanceMethod: true,2975		args: Array.prototype.slice.call(arguments)2976	});2977	if (result == null) {2978		return null;2979	}2980	// Wrap result if it's not a primitive type?2981	if (result.apiName) {2982		if (result.apiName === 'android.view.KeyEvent') {2983			return new KeyEvent(result);2984		} else {2985			var ctor = require(result.apiName);2986			return new ctor(result);2987		}2988	}2989	return result;2990};2991/**2992 * TODO Fill out docs more...2993 * @function isFunctionPressed2994 * @memberof2995 * @instance2996 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#isFunctionPressed()}2997 **/2998KeyEvent.prototype.isFunctionPressed = function() {2999	if (!this._hasPointer) return null;3000	var result = this.$native.callNativeFunction({3001		func: 'isFunctionPressed',3002		instanceMethod: true,3003		args: Array.prototype.slice.call(arguments)3004	});3005	if (result == null) {3006		return null;3007	}3008	// Wrap result if it's not a primitive type?3009	if (result.apiName) {3010		if (result.apiName === 'android.view.KeyEvent') {3011			return new KeyEvent(result);3012		} else {3013			var ctor = require(result.apiName);3014			return new ctor(result);3015		}3016	}3017	return result;3018};3019/**3020 * TODO Fill out docs more...3021 * @function getMetaState3022 * @memberof3023 * @instance3024 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#getMetaState()}3025 **/3026KeyEvent.prototype.getMetaState = function() {3027	if (!this._hasPointer) return null;3028	var result = this.$native.callNativeFunction({3029		func: 'getMetaState',3030		instanceMethod: true,3031		args: Array.prototype.slice.call(arguments)3032	});3033	if (result == null) {3034		return null;3035	}3036	// Wrap result if it's not a primitive type?3037	if (result.apiName) {3038		if (result.apiName === 'android.view.KeyEvent') {3039			return new KeyEvent(result);3040		} else {3041			var ctor = require(result.apiName);3042			return new ctor(result);3043		}3044	}3045	return result;3046};3047/**3048 * TODO Fill out docs more...3049 * @function isCapsLockOn3050 * @memberof3051 * @instance3052 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#isCapsLockOn()}3053 **/3054KeyEvent.prototype.isCapsLockOn = function() {3055	if (!this._hasPointer) return null;3056	var result = this.$native.callNativeFunction({3057		func: 'isCapsLockOn',3058		instanceMethod: true,3059		args: Array.prototype.slice.call(arguments)3060	});3061	if (result == null) {3062		return null;3063	}3064	// Wrap result if it's not a primitive type?3065	if (result.apiName) {3066		if (result.apiName === 'android.view.KeyEvent') {3067			return new KeyEvent(result);3068		} else {3069			var ctor = require(result.apiName);3070			return new ctor(result);3071		}3072	}3073	return result;3074};3075/**3076 * TODO Fill out docs more...3077 * @function isAltPressed3078 * @memberof3079 * @instance3080 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#isAltPressed()}3081 **/3082KeyEvent.prototype.isAltPressed = function() {3083	if (!this._hasPointer) return null;3084	var result = this.$native.callNativeFunction({3085		func: 'isAltPressed',3086		instanceMethod: true,3087		args: Array.prototype.slice.call(arguments)3088	});3089	if (result == null) {3090		return null;3091	}3092	// Wrap result if it's not a primitive type?3093	if (result.apiName) {3094		if (result.apiName === 'android.view.KeyEvent') {3095			return new KeyEvent(result);3096		} else {3097			var ctor = require(result.apiName);3098			return new ctor(result);3099		}3100	}3101	return result;3102};3103/**3104 * TODO Fill out docs more...3105 * @function getAction3106 * @memberof3107 * @instance3108 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#getAction()}3109 **/3110KeyEvent.prototype.getAction = function() {3111	if (!this._hasPointer) return null;3112	var result = this.$native.callNativeFunction({3113		func: 'getAction',3114		instanceMethod: true,3115		args: Array.prototype.slice.call(arguments)3116	});3117	if (result == null) {3118		return null;3119	}3120	// Wrap result if it's not a primitive type?3121	if (result.apiName) {3122		if (result.apiName === 'android.view.KeyEvent') {3123			return new KeyEvent(result);3124		} else {3125			var ctor = require(result.apiName);3126			return new ctor(result);3127		}3128	}3129	return result;3130};3131/**3132 * TODO Fill out docs more...3133 * @function getDisplayLabel3134 * @memberof3135 * @instance3136 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#getDisplayLabel()}3137 **/3138KeyEvent.prototype.getDisplayLabel = function() {3139	if (!this._hasPointer) return null;3140	var result = this.$native.callNativeFunction({3141		func: 'getDisplayLabel',3142		instanceMethod: true,3143		args: Array.prototype.slice.call(arguments)3144	});3145	if (result == null) {3146		return null;3147	}3148	// Wrap result if it's not a primitive type?3149	if (result.apiName) {3150		if (result.apiName === 'android.view.KeyEvent') {3151			return new KeyEvent(result);3152		} else {3153			var ctor = require(result.apiName);3154			return new ctor(result);3155		}3156	}3157	return result;3158};3159/**3160 * TODO Fill out docs more...3161 * @function getDownTime3162 * @memberof3163 * @instance3164 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#getDownTime()}3165 **/3166KeyEvent.prototype.getDownTime = function() {3167	if (!this._hasPointer) return null;3168	var result = this.$native.callNativeFunction({3169		func: 'getDownTime',3170		instanceMethod: true,3171		args: Array.prototype.slice.call(arguments)3172	});3173	if (result == null) {3174		return null;3175	}3176	// Wrap result if it's not a primitive type?3177	if (result.apiName) {3178		if (result.apiName === 'android.view.KeyEvent') {3179			return new KeyEvent(result);3180		} else {3181			var ctor = require(result.apiName);3182			return new ctor(result);3183		}3184	}3185	return result;3186};3187/**3188 * TODO Fill out docs more...3189 * @function getDeviceId3190 * @memberof3191 * @instance3192 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#getDeviceId()}3193 **/3194KeyEvent.prototype.getDeviceId = function() {3195	if (!this._hasPointer) return null;3196	var result = this.$native.callNativeFunction({3197		func: 'getDeviceId',3198		instanceMethod: true,3199		args: Array.prototype.slice.call(arguments)3200	});3201	if (result == null) {3202		return null;3203	}3204	// Wrap result if it's not a primitive type?3205	if (result.apiName) {3206		if (result.apiName === 'android.view.KeyEvent') {3207			return new KeyEvent(result);3208		} else {3209			var ctor = require(result.apiName);3210			return new ctor(result);3211		}3212	}3213	return result;3214};3215/**3216 * TODO Fill out docs more...3217 * @function isTracking3218 * @memberof3219 * @instance3220 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#isTracking()}3221 **/3222KeyEvent.prototype.isTracking = function() {3223	if (!this._hasPointer) return null;3224	var result = this.$native.callNativeFunction({3225		func: 'isTracking',3226		instanceMethod: true,3227		args: Array.prototype.slice.call(arguments)3228	});3229	if (result == null) {3230		return null;3231	}3232	// Wrap result if it's not a primitive type?3233	if (result.apiName) {3234		if (result.apiName === 'android.view.KeyEvent') {3235			return new KeyEvent(result);3236		} else {3237			var ctor = require(result.apiName);3238			return new ctor(result);3239		}3240	}3241	return result;3242};3243/**3244 * TODO Fill out docs more...3245 * @function hasModifiers3246 * @memberof3247 * @instance3248 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#hasModifiers(int)}3249 **/3250KeyEvent.prototype.hasModifiers = function() {3251	if (!this._hasPointer) return null;3252	var result = this.$native.callNativeFunction({3253		func: 'hasModifiers',3254		instanceMethod: true,3255		args: Array.prototype.slice.call(arguments)3256	});3257	if (result == null) {3258		return null;3259	}3260	// Wrap result if it's not a primitive type?3261	if (result.apiName) {3262		if (result.apiName === 'android.view.KeyEvent') {3263			return new KeyEvent(result);3264		} else {3265			var ctor = require(result.apiName);3266			return new ctor(result);3267		}3268	}3269	return result;3270};3271/**3272 * TODO Fill out docs more...3273 * @function hasNoModifiers3274 * @memberof3275 * @instance3276 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#hasNoModifiers()}3277 **/3278KeyEvent.prototype.hasNoModifiers = function() {3279	if (!this._hasPointer) return null;3280	var result = this.$native.callNativeFunction({3281		func: 'hasNoModifiers',3282		instanceMethod: true,3283		args: Array.prototype.slice.call(arguments)3284	});3285	if (result == null) {3286		return null;3287	}3288	// Wrap result if it's not a primitive type?3289	if (result.apiName) {3290		if (result.apiName === 'android.view.KeyEvent') {3291			return new KeyEvent(result);3292		} else {3293			var ctor = require(result.apiName);3294			return new ctor(result);3295		}3296	}3297	return result;3298};3299/**3300 * TODO Fill out docs more...3301 * @function startTracking3302 * @memberof3303 * @instance3304 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#startTracking()}3305 **/3306KeyEvent.prototype.startTracking = function() {3307	if (!this._hasPointer) return null;3308	var result = this.$native.callNativeFunction({3309		func: 'startTracking',3310		instanceMethod: true,3311		args: Array.prototype.slice.call(arguments)3312	});3313	if (result == null) {3314		return null;3315	}3316	// Wrap result if it's not a primitive type?3317	if (result.apiName) {3318		if (result.apiName === 'android.view.KeyEvent') {3319			return new KeyEvent(result);3320		} else {3321			var ctor = require(result.apiName);3322			return new ctor(result);3323		}3324	}3325	return result;3326};3327/**3328 * TODO Fill out docs more...3329 * @function getKeyCharacterMap3330 * @memberof3331 * @instance3332 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#getKeyCharacterMap()}3333 **/3334KeyEvent.prototype.getKeyCharacterMap = function() {3335	if (!this._hasPointer) return null;3336	var result = this.$native.callNativeFunction({3337		func: 'getKeyCharacterMap',3338		instanceMethod: true,3339		args: Array.prototype.slice.call(arguments)3340	});3341	if (result == null) {3342		return null;3343	}3344	// Wrap result if it's not a primitive type?3345	if (result.apiName) {3346		if (result.apiName === 'android.view.KeyEvent') {3347			return new KeyEvent(result);3348		} else {3349			var ctor = require(result.apiName);3350			return new ctor(result);3351		}3352	}3353	return result;3354};3355/**3356 * TODO Fill out docs more...3357 * @function toString3358 * @memberof3359 * @instance3360 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#toString()}3361 **/3362KeyEvent.prototype.toString = function() {3363	if (!this._hasPointer) return null;3364	var result = this.$native.callNativeFunction({3365		func: 'toString',3366		instanceMethod: true,3367		args: Array.prototype.slice.call(arguments)3368	});3369	if (result == null) {3370		return null;3371	}3372	// Wrap result if it's not a primitive type?3373	if (result.apiName) {3374		if (result.apiName === 'android.view.KeyEvent') {3375			return new KeyEvent(result);3376		} else {3377			var ctor = require(result.apiName);3378			return new ctor(result);3379		}3380	}3381	return result;3382};3383/**3384 * TODO Fill out docs more...3385 * @function getRepeatCount3386 * @memberof3387 * @instance3388 * @see {@link http://developer.android.com/reference/android/view/KeyEvent.html#getRepeatCount()}3389 **/3390KeyEvent.prototype.getRepeatCount = function() {3391	if (!this._hasPointer) return null;3392	var result = this.$native.callNativeFunction({3393		func: 'getRepeatCount',3394		instanceMethod: true,3395		args: Array.prototype.slice.call(arguments)3396	});3397	if (result == null) {3398		return null;3399	}3400	// Wrap result if it's not a primitive type?3401	if (result.apiName) {3402		if (result.apiName === 'android.view.KeyEvent') {3403			return new KeyEvent(result);3404		} else {3405			var ctor = require(result.apiName);3406			return new ctor(result);3407		}3408	}3409	return result;3410};3411// export the class...KeyEvent.ts
Source:KeyEvent.ts  
1/*2    RPG Paper Maker Copyright (C) 2017-2021 Wano3    RPG Paper Maker engine is under proprietary license.4    This source code is also copyrighted.5    Use Commercial edition for commercial use of your games.6    See RPG Paper Maker EULA here:7        http://rpg-paper-maker.com/index.php/eula.8*/9import { Inputs } from "./Inputs";10/**11 * The key event class used to convert Qt keys to web keys.12 *13 * @class KeyEvent14 */15class KeyEvent {16    static DOM_VK_CANCEL = 3;17    static DOM_VK_HELP = 6;18    static DOM_VK_BACK_SPACE = 8;19    static DOM_VK_TAB = 9;20    static DOM_VK_CLEAR = 12;21    static DOM_VK_RETURN = 13;22    static DOM_VK_ENTER = 14;23    static DOM_VK_SHIFT = 16;24    static DOM_VK_CONTROL = 17;25    static DOM_VK_ALT = 18;26    static DOM_VK_PAUSE = 19;27    static DOM_VK_CAPS_LOCK = 20;28    static DOM_VK_ESCAPE = 27;29    static DOM_VK_SPACE = 32;30    static DOM_VK_PAGE_UP = 33;31    static DOM_VK_PAGE_DOWN = 34;32    static DOM_VK_END = 35;33    static DOM_VK_HOME = 36;34    static DOM_VK_LEFT = 37;35    static DOM_VK_UP = 38;36    static DOM_VK_RIGHT = 39;37    static DOM_VK_DOWN = 40;38    static DOM_VK_PRINTSCREEN = 44;39    static DOM_VK_INSERT = 45;40    static DOM_VK_DELETE = 46;41    static DOM_VK_0 = 48;42    static DOM_VK_1 = 49;43    static DOM_VK_2 = 50;44    static DOM_VK_3 = 51;45    static DOM_VK_4 = 52;46    static DOM_VK_5 = 53;47    static DOM_VK_6 = 54;48    static DOM_VK_7 = 55;49    static DOM_VK_8 = 56;50    static DOM_VK_9 = 57;51    static DOM_VK_SEMICOLON = 59;52    static DOM_VK_EQUALS = 61;53    static DOM_VK_A = 65;54    static DOM_VK_B = 66;55    static DOM_VK_C = 67;56    static DOM_VK_D = 68;57    static DOM_VK_E = 69;58    static DOM_VK_F = 70;59    static DOM_VK_G = 71;60    static DOM_VK_H = 72;61    static DOM_VK_I = 73;62    static DOM_VK_J = 74;63    static DOM_VK_K = 75;64    static DOM_VK_L = 76;65    static DOM_VK_M = 77;66    static DOM_VK_N = 78;67    static DOM_VK_O = 79;68    static DOM_VK_P = 80;69    static DOM_VK_Q = 81;70    static DOM_VK_R = 82;71    static DOM_VK_S = 83;72    static DOM_VK_T = 84;73    static DOM_VK_U = 85;74    static DOM_VK_V = 86;75    static DOM_VK_W = 87;76    static DOM_VK_X = 88;77    static DOM_VK_Y = 89;78    static DOM_VK_Z = 90;79    static DOM_VK_NUMPAD0 = 96;80    static DOM_VK_NUMPAD1 = 97;81    static DOM_VK_NUMPAD2 = 98;82    static DOM_VK_NUMPAD3 = 99;83    static DOM_VK_NUMPAD4 = 100;84    static DOM_VK_NUMPAD5 = 101;85    static DOM_VK_NUMPAD6 = 102;86    static DOM_VK_NUMPAD7 = 103;87    static DOM_VK_NUMPAD8 = 104;88    static DOM_VK_NUMPAD9 = 105;89    static DOM_VK_MULTIPLY = 106;90    static DOM_VK_ADD = 107;91    static DOM_VK_SEPARATOR = 108;92    static DOM_VK_SUBTRACT = 109;93    static DOM_VK_DECIMAL = 110;94    static DOM_VK_DIVIDE = 111;95    static DOM_VK_F1 = 112;96    static DOM_VK_F2 = 113;97    static DOM_VK_F3 = 114;98    static DOM_VK_F4 = 115;99    static DOM_VK_F5 = 116;100    static DOM_VK_F6 = 117;101    static DOM_VK_F7 = 118;102    static DOM_VK_F8 = 119;103    static DOM_VK_F9 = 120;104    static DOM_VK_F10 = 121;105    static DOM_VK_F11 = 122;106    static DOM_VK_F12 = 123;107    static DOM_VK_F13 = 124;108    static DOM_VK_F14 = 125;109    static DOM_VK_F15 = 126;110    static DOM_VK_F16 = 127;111    static DOM_VK_F17 = 128;112    static DOM_VK_F18 = 129;113    static DOM_VK_F19 = 130;114    static DOM_VK_F20 = 131;115    static DOM_VK_F21 = 132;116    static DOM_VK_F22 = 133;117    static DOM_VK_F23 = 134;118    static DOM_VK_F24 = 135;119    static DOM_VK_NUM_LOCK = 144;120    static DOM_VK_SCROLL_LOCK = 145;121    static DOM_VK_COMMA = 188;122    static DOM_VK_PERIOD = 190;123    static DOM_VK_SLASH = 191;124    static DOM_VK_BACK_QUOTE = 192;125    static DOM_VK_OPEN_BRACKET = 219;126    static DOM_VK_BACK_SLASH = 220;127    static DOM_VK_CLOSE_BRACKET = 221;128    static DOM_VK_QUOTE = 222;129    static DOM_VK_META = 224;130    static SQUARE = 178;131    static AMPERSAND = 38;132    static E_ACCENT_RIGHT = 201;133    static TILDE = 126;134    static HASH = 35;135    static APOSTROPHE = 39;136    static LEFT_PARENTHESIS = 40;137    static LEFT_BRACES = 123;138    static RIGHT_BRACES = 126;139    static E_ACCENT_LEFT = 200;140    static UNDERSCORE = 95;141    static C_UNDER = 199;142    static CARAT = 94;143    static A_ACCENT = 192;144    static AT = 64;145    static RIGHT_PARENTHESIS = 41;146    static DEGREE = 176;147    static TREMA = 16781911;148    static CARAT_2 = 16781906;149    static POUND = 163;150    static DOLLAR = 36;151    static YEN = 164;152    static U_GRAVE = 217;153    static PERCENT = 37;154    static MU = 924;155    static QUESTION = 63;156    static POINT = 46;157    static COLON = 58;158    static SECTION_SIGN = 167;159    static EXCLAMATION = 33;160    static ALT_GR = 16781571;161    static LESS_THAN = 60;162    static GREATER_THAN = 62;163    /** Convert Qt key to DOM.164     *   @static165     *   @param {number} key - The qt key to convert166     *   @returns {number}167     */168    static qtToDOM(key: number): number {169        switch (key) {170            case 16777219:171                return KeyEvent.DOM_VK_BACK_SPACE;172            case 16777217:173                return KeyEvent.DOM_VK_TAB;174            case 16777220:175                return KeyEvent.DOM_VK_RETURN;176            case 16777221:177                return KeyEvent.DOM_VK_ENTER;178            case 16777248:179                return KeyEvent.DOM_VK_SHIFT;180            case 16777249:181                return KeyEvent.DOM_VK_CONTROL;182            case 16777251:183                return KeyEvent.DOM_VK_ALT;184            case 16777224:185                return KeyEvent.DOM_VK_PAUSE;186            case 16777252:187                return KeyEvent.DOM_VK_CAPS_LOCK;188            case 16777216:189                return KeyEvent.DOM_VK_ESCAPE;190            case 16777238:191                return KeyEvent.DOM_VK_PAGE_UP;192            case 16777239:193                return KeyEvent.DOM_VK_PAGE_DOWN;194            case 16777233:195                return KeyEvent.DOM_VK_END;196            case 16777250:197                return KeyEvent.DOM_VK_HOME;198            case 16777234:199                return KeyEvent.DOM_VK_LEFT;200            case 16777235:201                return KeyEvent.DOM_VK_UP;202            case 16777236:203                return KeyEvent.DOM_VK_RIGHT;204            case 16777237:205                return KeyEvent.DOM_VK_DOWN;206            case 16777222:207                return KeyEvent.DOM_VK_INSERT;208            case 16777223:209                return KeyEvent.DOM_VK_DELETE;210            case 42:211                return KeyEvent.DOM_VK_MULTIPLY;212            case 43:213                return KeyEvent.DOM_VK_ADD;214            case 124:215                return KeyEvent.DOM_VK_SEPARATOR;216            case 45:217                return KeyEvent.DOM_VK_SUBTRACT;218            case 16777223:219                return KeyEvent.DOM_VK_DECIMAL;220            case 47:221                return KeyEvent.DOM_VK_DIVIDE;222            case 16777264:223                return KeyEvent.DOM_VK_F1;224            case 16777265:225                return KeyEvent.DOM_VK_F2;226            case 16777266:227                return KeyEvent.DOM_VK_F3;228            case 16777267:229                return KeyEvent.DOM_VK_F4;230            case 16777268:231                return KeyEvent.DOM_VK_F5;232            case 16777269:233                return KeyEvent.DOM_VK_F6;234            case 16777270:235                return KeyEvent.DOM_VK_F7;236            case 16777271:237                return KeyEvent.DOM_VK_F8;238            case 16777272:239                return KeyEvent.DOM_VK_F9;240            case 16777273:241                return KeyEvent.DOM_VK_F10;242            case 16777274:243                return KeyEvent.DOM_VK_F11;244            case 16777275:245                return KeyEvent.DOM_VK_F12;246            case 16777276:247                return KeyEvent.DOM_VK_F13;248            case 16777277:249                return KeyEvent.DOM_VK_F14;250            case 16777278:251                return KeyEvent.DOM_VK_F15;252            case 16777279:253                return KeyEvent.DOM_VK_F16;254            case 16777280:255                return KeyEvent.DOM_VK_F17;256            case 16777281:257                return KeyEvent.DOM_VK_F18;258            case 16777282:259                return KeyEvent.DOM_VK_F19;260            case 16777283:261                return KeyEvent.DOM_VK_F20;262            case 16777284:263                return KeyEvent.DOM_VK_F21;264            case 16777285:265                return KeyEvent.DOM_VK_F22;266            case 16777286:267                return KeyEvent.DOM_VK_F23;268            case 16777287:269                return KeyEvent.DOM_VK_F24;270            case 16777253:271                return KeyEvent.DOM_VK_NUM_LOCK;272            case 44:273                return KeyEvent.DOM_VK_COMMA;274            case 96:275                return KeyEvent.DOM_VK_BACK_QUOTE;276            case 91:277                return KeyEvent.DOM_VK_OPEN_BRACKET;278            case 92:279                return KeyEvent.DOM_VK_BACK_SLASH;280            case 93:281                return KeyEvent.DOM_VK_CLOSE_BRACKET;282            case 34:283                return KeyEvent.DOM_VK_QUOTE;284            default:285                return key;286        }287    }288    /** Check if the pressed key is a PAD number.289     *   @static290     *   @param {number} key - The key ID291     *   @returns {boolean}292     */293    static isKeyNumberPADPressed(key: number): boolean {294        return key >= KeyEvent.DOM_VK_NUMPAD0 && key <= KeyEvent.DOM_VK_NUMPAD9;295    }296    /** Check if the pressed key is a number with shift.297     *   @static298     *   @param {number} key - The key ID299     *   @returns {boolean}300     */301    static isKeyNumberTopPressed(key: number): boolean {302        let shift = Inputs.keysPressed.indexOf(KeyEvent.DOM_VK_SHIFT) !== -1;303        return shift && key >= KeyEvent.DOM_VK_0 && key <= KeyEvent.DOM_VK_9;304    }305    /** Check if the pressed key is a number.306     *   @static307     *   @param {number} key - The key ID308     *   @returns {boolean}309     */310    static isKeyNumberPressed(key: number): boolean {311        return KeyEvent.isKeyNumberPADPressed(key) || KeyEvent312            .isKeyNumberTopPressed(key);313    }314    /** Get the char associated to the key.315     *   @static316     *   @param {number} key - The key ID317     *   @returns {string}318     */319    static getKeyChar(key: number): string {320        // Character321        if (key >= KeyEvent.DOM_VK_A && key <= KeyEvent.DOM_VK_Z) {322            return String.fromCharCode(key);323        }324        // Numbers (PADNUM)325        if (KeyEvent.isKeyNumberPADPressed(key)) {326            return "" + (key - KeyEvent.DOM_VK_NUMPAD0);327        }328        // Numbers329        if (KeyEvent.isKeyNumberTopPressed(key)) {330            return String.fromCharCode(key);331        } else {332            return "";333        }334    }335    /** Get the string associated to the key336     *   @static337     *   @param {number} key - The key ID338     *   @returns {string}339     */340    static getKeyString(key: number): string {341        let text = KeyEvent.getKeyChar(key);342        if (!text) {343            switch (key) {344                case KeyEvent.DOM_VK_CANCEL:345                    return "CANCEL";346                case KeyEvent.DOM_VK_HELP:347                    return "HELP";348                case KeyEvent.DOM_VK_BACK_SPACE:349                    return "BACKSPACE";350                case KeyEvent.DOM_VK_TAB:351                    return "TAB";352                case KeyEvent.DOM_VK_CLEAR:353                    return "CLEAR";354                case KeyEvent.DOM_VK_RETURN:355                    return "RETURN";356                case KeyEvent.DOM_VK_ENTER:357                    return "ENTER";358                case KeyEvent.DOM_VK_SHIFT:359                    return "SHIFT";360                case KeyEvent.DOM_VK_CONTROL:361                    return "CTRL";362                case KeyEvent.DOM_VK_ALT:363                    return "ALT";364                case KeyEvent.DOM_VK_PAUSE:365                    return "PAUSE";366                case KeyEvent.DOM_VK_CAPS_LOCK:367                    return "CAPSLOCK";368                case KeyEvent.DOM_VK_ESCAPE:369                    return "ESCAPE";370                case KeyEvent.DOM_VK_SPACE:371                    return "SPACE";372                case KeyEvent.DOM_VK_PAGE_UP:373                    return "PAGEUP";374                case KeyEvent.DOM_VK_PAGE_DOWN:375                    return "PAGEDOWN";376                case KeyEvent.DOM_VK_END:377                    return "END";378                case KeyEvent.DOM_VK_HOME:379                    return "HOME";380                case KeyEvent.DOM_VK_LEFT:381                    return "LEFT";382                case KeyEvent.DOM_VK_UP:383                    return "UP";384                case KeyEvent.DOM_VK_RIGHT:385                    return "RIGHT";386                case KeyEvent.DOM_VK_DOWN:387                    return "DOWN";388                case KeyEvent.DOM_VK_PRINTSCREEN:389                    return "PRINTSCREEN";390                case KeyEvent.DOM_VK_INSERT:391                    return "INSERT";392                case KeyEvent.DOM_VK_DELETE:393                    return "DELETE";394                case KeyEvent.DOM_VK_SEMICOLON:395                    return ";";396                case KeyEvent.DOM_VK_EQUALS:397                    return "=";398                case KeyEvent.DOM_VK_MULTIPLY:399                    return "*";400                case KeyEvent.DOM_VK_ADD:401                    return "+";402                case KeyEvent.DOM_VK_SEPARATOR:403                    return "|";404                case KeyEvent.DOM_VK_SUBTRACT:405                    return "-";406                case KeyEvent.DOM_VK_DECIMAL:407                    return ".";408                case KeyEvent.DOM_VK_DIVIDE:409                    return "/";410                case KeyEvent.DOM_VK_F1:411                    return "F1";412                case KeyEvent.DOM_VK_F2:413                    return "F2";414                case KeyEvent.DOM_VK_F3:415                    return "F3";416                case KeyEvent.DOM_VK_F4:417                    return "F4";418                case KeyEvent.DOM_VK_F5:419                    return "F5";420                case KeyEvent.DOM_VK_F6:421                    return "F6";422                case KeyEvent.DOM_VK_F7:423                    return "F7";424                case KeyEvent.DOM_VK_F8:425                    return "F8";426                case KeyEvent.DOM_VK_F9:427                    return "F9";428                case KeyEvent.DOM_VK_F10:429                    return "F10";430                case KeyEvent.DOM_VK_F11:431                    return "F11";432                case KeyEvent.DOM_VK_F12:433                    return "F12";434                case KeyEvent.DOM_VK_F13:435                    return "F13";436                case KeyEvent.DOM_VK_F14:437                    return "F14";438                case KeyEvent.DOM_VK_F15:439                    return "F15";440                case KeyEvent.DOM_VK_F16:441                    return "F16";442                case KeyEvent.DOM_VK_F17:443                    return "F17";444                case KeyEvent.DOM_VK_F18:445                    return "F18";446                case KeyEvent.DOM_VK_F19:447                    return "F19";448                case KeyEvent.DOM_VK_F20:449                    return "F20";450                case KeyEvent.DOM_VK_F21:451                    return "F21";452                case KeyEvent.DOM_VK_F22:453                    return "F22";454                case KeyEvent.DOM_VK_F23:455                    return "F23";456                case KeyEvent.DOM_VK_F24:457                    return "F24";458                case KeyEvent.DOM_VK_NUM_LOCK:459                    return "NUMLOCK";460                case KeyEvent.DOM_VK_SCROLL_LOCK:461                    return "SCROLLLOCK";462                case KeyEvent.DOM_VK_COMMA:463                    return ",";464                case KeyEvent.DOM_VK_PERIOD:465                    return "PERIOD";466                case KeyEvent.DOM_VK_SLASH:467                    return "/";468                case KeyEvent.DOM_VK_BACK_QUOTE:469                    return "`";470                case KeyEvent.DOM_VK_OPEN_BRACKET:471                    return "[";472                case KeyEvent.DOM_VK_BACK_SLASH:473                    return "\\";474                case KeyEvent.DOM_VK_CLOSE_BRACKET:475                    return "]";476                case KeyEvent.DOM_VK_QUOTE:477                    return '"';478                case KeyEvent.DOM_VK_META:479                    return "META";480                case KeyEvent.SQUARE:481                    return "²";482                case KeyEvent.AMPERSAND:483                    return "&";484                case KeyEvent.E_ACCENT_RIGHT:485                    return "Ã";486                case KeyEvent.TILDE:487                    return "~";488                case KeyEvent.HASH:489                    return "#"490                case KeyEvent.APOSTROPHE:491                    return "'";492                case KeyEvent.LEFT_PARENTHESIS:493                    return "(";494                case KeyEvent.LEFT_BRACES:495                    return "{";496                case KeyEvent.RIGHT_BRACES:497                    return "}";498                case KeyEvent.E_ACCENT_LEFT:499                    return "Ã";500                case KeyEvent.UNDERSCORE:501                    return "_";502                case KeyEvent.C_UNDER:503                    return "ç";504                case KeyEvent.CARAT:505                    return "^";506                case KeyEvent.A_ACCENT:507                    return "Ã";508                case KeyEvent.AT:509                    return "@";510                case KeyEvent.RIGHT_PARENTHESIS:511                    return ")";512                case KeyEvent.DEGREE:513                    return "°";514                case KeyEvent.TREMA:515                    return "¨";516                case KeyEvent.CARAT_2:517                    return "^";518                case KeyEvent.POUND:519                    return "£";520                case KeyEvent.DOLLAR:521                    return "$";522                case KeyEvent.YEN:523                    return "¤";524                case KeyEvent.U_GRAVE:525                    return "ù";526                case KeyEvent.PERCENT:527                    return "%";528                case KeyEvent.MU:529                    return "µ";530                case KeyEvent.QUESTION:531                    return "?";532                case KeyEvent.POINT:533                    return ".";534                case KeyEvent.COLON:535                    return ":";536                case KeyEvent.SECTION_SIGN:537                    return "§";538                case KeyEvent.EXCLAMATION:539                    return "!"540                case KeyEvent.ALT_GR:541                    return "ALT GR";542                case KeyEvent.LESS_THAN:543                    return "<";544                case KeyEvent.GREATER_THAN:545                    return ">";546            }547            return "? [ID=" + key + "]";548        }549        return text;550    }551}...keyboard.py
Source:keyboard.py  
1#!/usr/bin/env python2# Copyright 2016 The Chromium Authors. All rights reserved.3# Use of this source code is governed by a BSD-style license that can be4# found in the LICENSE file.5"""Use your keyboard as your phone's keyboard. Experimental."""6import argparse7import copy8import os9import sys10import termios11import tty12if __name__ == '__main__':13  sys.path.append(14      os.path.abspath(15          os.path.join(os.path.dirname(__file__), '..', '..', '..')))16from devil import base_error17from devil.android.sdk import keyevent18from devil.android.tools import script_common19from devil.utils import logging_common20_KEY_MAPPING = {21    '\x08': keyevent.KEYCODE_DEL,22    '\x0a': keyevent.KEYCODE_ENTER,23    ' ': keyevent.KEYCODE_SPACE,24    '.': keyevent.KEYCODE_PERIOD,25    '0': keyevent.KEYCODE_0,26    '1': keyevent.KEYCODE_1,27    '2': keyevent.KEYCODE_2,28    '3': keyevent.KEYCODE_3,29    '4': keyevent.KEYCODE_4,30    '5': keyevent.KEYCODE_5,31    '6': keyevent.KEYCODE_6,32    '7': keyevent.KEYCODE_7,33    '8': keyevent.KEYCODE_8,34    '9': keyevent.KEYCODE_9,35    'a': keyevent.KEYCODE_A,36    'b': keyevent.KEYCODE_B,37    'c': keyevent.KEYCODE_C,38    'd': keyevent.KEYCODE_D,39    'e': keyevent.KEYCODE_E,40    'f': keyevent.KEYCODE_F,41    'g': keyevent.KEYCODE_G,42    'h': keyevent.KEYCODE_H,43    'i': keyevent.KEYCODE_I,44    'j': keyevent.KEYCODE_J,45    'k': keyevent.KEYCODE_K,46    'l': keyevent.KEYCODE_L,47    'm': keyevent.KEYCODE_M,48    'n': keyevent.KEYCODE_N,49    'o': keyevent.KEYCODE_O,50    'p': keyevent.KEYCODE_P,51    'q': keyevent.KEYCODE_Q,52    'r': keyevent.KEYCODE_R,53    's': keyevent.KEYCODE_S,54    't': keyevent.KEYCODE_T,55    'u': keyevent.KEYCODE_U,56    'v': keyevent.KEYCODE_V,57    'w': keyevent.KEYCODE_W,58    'x': keyevent.KEYCODE_X,59    'y': keyevent.KEYCODE_Y,60    'z': keyevent.KEYCODE_Z,61    '\x7f': keyevent.KEYCODE_DEL,62}63def Keyboard(device, stream_itr):64  try:65    for c in stream_itr:66      k = _KEY_MAPPING.get(c)67      if k:68        device.SendKeyEvent(k)69      else:70        print71        print '(No mapping for character 0x%x)' % ord(c)72  except KeyboardInterrupt:73    pass74class MultipleDevicesError(base_error.BaseError):75  def __init__(self, devices):76    super(MultipleDevicesError, self).__init__(77        'More than one device found: %s' % ', '.join(str(d) for d in devices))78def main(raw_args):79  parser = argparse.ArgumentParser(80      description="Use your keyboard as your phone's keyboard.")81  logging_common.AddLoggingArguments(parser)82  script_common.AddDeviceArguments(parser)83  args = parser.parse_args(raw_args)84  logging_common.InitializeLogging(args)85  devices = script_common.GetDevices(args.devices, None)86  if len(devices) > 1:87    raise MultipleDevicesError(devices)88  def next_char():89    while True:90      yield sys.stdin.read(1)91  try:92    fd = sys.stdin.fileno()93    # See man 3 termios for more info on what this is doing.94    old_attrs = termios.tcgetattr(fd)95    new_attrs = copy.deepcopy(old_attrs)96    new_attrs[tty.LFLAG] = new_attrs[tty.LFLAG] & ~(termios.ICANON)97    new_attrs[tty.CC][tty.VMIN] = 198    new_attrs[tty.CC][tty.VTIME] = 099    termios.tcsetattr(fd, termios.TCSAFLUSH, new_attrs)100    Keyboard(devices[0], next_char())101  finally:102    termios.tcsetattr(fd, termios.TCSAFLUSH, old_attrs)103  return 0104if __name__ == '__main__':...Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!
