Home
last modified time | relevance | path

Searched refs:keyCode (Results 1 – 25 of 240) sorted by relevance

12345678910

/external/chromium_org/ui/keyboard/resources/elements/
Dkb-key-codes.js34 '\b': {keyCode: 0x08, keyName: 'Backspace', shiftModifier: false}, property
35 '\t': {keyCode: 0x09, keyName: 'Tab', shiftModifier: false}, property
36 '\n': {keyCode: 0x0D, keyName: 'Enter', shiftModifier: false}, property
37 'Esc': {keyCode: 0x1B, keyName: 'Escape', shiftModifier: false}, property
38 ' ': {keyCode: 0x20, keyName: 'Space', shiftModifier: false}, property
39 'Arrow-Left': {keyCode: 0x25, keyName: 'ArrowLeft', property
41 'Arrow-Up': {keyCode: 0x26, keyName: 'ArrowUp', shiftModifier: undefined}, property
42 'Arrow-Right': {keyCode: 0x27, keyName: 'ArrowRight', property
44 'Arrow-Down': {keyCode: 0x28, keyName: 'ArrowDown', property
46 '0': {keyCode: 0x30, keyName: 'Digit0', shiftModifier: false}, property
[all …]
Dkb-key.js27 keyCode: undefined, property
86 details.keyCode = this.keyCode;
/external/chromium_org/chrome/browser/resources/chromeos/chromevox/common/
Dkey_util.js120 keyEvent.keyCode == cvox.KeyUtil.getStickyKeyCode()) {
141 cvox.KeyUtil.keyCodeToString = function(keyCode) { argument
142 if (keyCode == 17) {
145 if (keyCode == 18) {
148 if (keyCode == 16) {
151 if ((keyCode == 91) || (keyCode == 93)) {
163 if (keyCode == 45) {
166 if (keyCode >= 65 && keyCode <= 90) {
168 return String.fromCharCode(keyCode);
169 } else if (keyCode >= 48 && keyCode <= 57) {
[all …]
Dkey_sequence.js89 keyCode: [] property
133 if (this.keys.keyCode.length > 1) {
190 var keyCode;
196 keyCode = keyEvent[prop] - 32;
198 keyCode = cvox.KeySequence.KEY_PRESS_CODE[keyEvent[prop]];
200 this.keys[prop].push(keyCode || keyEvent[prop]);
235 var index = this.keys.keyCode.length - 1;
298 return this.keys.keyCode[0];
307 return this.keys.keyCode.length;
319 cvox.KeySequence.prototype.isModifierKey = function(keyCode) { argument
[all …]
Dmedia_widget.js73 if ((evt.keyCode == 13) || (evt.keyCode == 32)) {
79 } else if (evt.keyCode == 39) { // Right - FF
82 } else if (evt.keyCode == 37) { // Left - REW
85 } else if (evt.keyCode == 38) { // Up - Vol. Up
87 } else if (evt.keyCode == 40) { // Down - Vol. Down
Dkey_sequence_test.js45 createMockEvent: function(keyCode, eventParams) { argument
47 mockEvent.keyCode = keyCode;
162 assertEqualsJSON([40], downKey.keys.keyCode);
182 assertEqualsJSON([40], downKey.keys.keyCode);
202 assertEqualsJSON([40], cvoxDownKey.keys.keyCode);
398 assertEqualsJSON(ctrlString.keys.keyCode, [17]);
402 assertEqualsJSON(modifiedLetterString.keys.keyCode, [90]);
405 assertEqualsJSON(keyCodeString.keys.keyCode, [9]);
409 assertEqualsJSON(modifiedKeyCodeString.keys.keyCode, [9]);
413 assertEqualsJSON(cvoxLetterString.keys.keyCode, [85]);
[all …]
/external/chromium_org/chrome/browser/resources/extensions/
Dextension_command_list.js51 function validChar(keyCode) { argument
52 return keyCode == keyComma ||
53 keyCode == keyDel ||
54 keyCode == keyDown ||
55 keyCode == keyEnd ||
56 keyCode == keyHome ||
57 keyCode == keyIns ||
58 keyCode == keyLeft ||
59 keyCode == keyMediaNextTrack ||
60 keyCode == keyMediaPlayPause ||
[all …]
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/
DContentViewClient.java55 int keyCode = event.getKeyCode(); in shouldOverrideKeyEvent() local
57 if (!shouldPropagateKey(keyCode)) return true; in shouldOverrideKeyEvent()
61 keyCode == KeyEvent.KEYCODE_TAB || in shouldOverrideKeyEvent()
62 keyCode == KeyEvent.KEYCODE_W || in shouldOverrideKeyEvent()
63 keyCode == KeyEvent.KEYCODE_F4)) { in shouldOverrideKeyEvent()
174 public static boolean shouldPropagateKey(int keyCode) { in shouldPropagateKey() argument
175 if (keyCode == KeyEvent.KEYCODE_MENU || in shouldPropagateKey()
176 keyCode == KeyEvent.KEYCODE_HOME || in shouldPropagateKey()
177 keyCode == KeyEvent.KEYCODE_BACK || in shouldPropagateKey()
178 keyCode == KeyEvent.KEYCODE_CALL || in shouldPropagateKey()
[all …]
DContentVideoViewLegacy.java93 public boolean onKey(View v, int keyCode, KeyEvent event) { in showContentVideoView()
95 keyCode != KeyEvent.KEYCODE_BACK && in showContentVideoView()
96 keyCode != KeyEvent.KEYCODE_VOLUME_UP && in showContentVideoView()
97 keyCode != KeyEvent.KEYCODE_VOLUME_DOWN && in showContentVideoView()
98 keyCode != KeyEvent.KEYCODE_VOLUME_MUTE && in showContentVideoView()
99 keyCode != KeyEvent.KEYCODE_CALL && in showContentVideoView()
100 keyCode != KeyEvent.KEYCODE_MENU && in showContentVideoView()
101 keyCode != KeyEvent.KEYCODE_SEARCH && in showContentVideoView()
102 keyCode != KeyEvent.KEYCODE_ENDCALL); in showContentVideoView()
104 if (keyCode == KeyEvent.KEYCODE_HEADSETHOOK || in showContentVideoView()
[all …]
/external/droiddriver/src/com/google/android/droiddriver/actions/
DSingleKeyAction.java43 private final int keyCode; field in SingleKeyAction
48 public SingleKeyAction(int keyCode) { in SingleKeyAction() argument
49 this(keyCode, 100L, false); in SingleKeyAction()
52 public SingleKeyAction(int keyCode, long timeoutMillis, boolean checkFocused) { in SingleKeyAction() argument
54 this.keyCode = keyCode; in SingleKeyAction()
62 KeyEvent downEvent = Events.newKeyEvent(downTime, KeyEvent.ACTION_DOWN, keyCode); in perform()
63 KeyEvent upEvent = Events.newKeyEvent(downTime, KeyEvent.ACTION_UP, keyCode); in perform()
71 Build.VERSION.SDK_INT < Build.VERSION_CODES.HONEYCOMB_MR1 ? String.valueOf(keyCode) in toString()
72 : KeyEvent.keyCodeToString(keyCode); in toString()
/external/chromium_org/chrome/common/extensions/docs/examples/extensions/speak_selection/
Dkeycodes.js77 if (evt.keyCode >= 48 && evt.keyCode <= 90) {
78 tokens.push(String.fromCharCode(evt.keyCode));
79 } else if (KEY_MAP[evt.keyCode]) {
80 tokens.push(KEY_MAP[evt.keyCode]);
89 keyCode: 83, // 's' property
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DGalleryTest.java33 assertThat(listener.keyCode, equalTo(KeyEvent.KEYCODE_DPAD_RIGHT)); in onKeyDown_dPadRightShouldTriggerKeyEventDPadRight()
41 assertThat(listener.keyCode, equalTo(KeyEvent.KEYCODE_DPAD_RIGHT)); in onKeyDown_dPadLeftShouldTriggerKeyEventListener()
48 int keyCode; field in GalleryTest.TestOnKeyListener
52 public boolean onKey(View view, int keyCode, KeyEvent event) { in onKey() argument
54 this.keyCode = keyCode; in onKey()
/external/skia/src/animator/
DSkDisplayEvents.cpp51 int keyCode = state ? state->fCode : 0; in doEvent() local
60 …if ((int) evt->code > keyCode || (int) (evt->fMax != (SkKey) -1 ? evt->fMax : evt->code) < keyCode) in doEvent()
62 evt->fLastCode = (SkKey) keyCode; in doEvent()
98 int keyCode = state ? state->fCode : 0; in removeEvent() local
105 …if ((int) evt->code > keyCode || (int) (evt->fMax != (SkKey) -1 ? evt->fMax : evt->code) < keyCode) in removeEvent()
/external/chromium_org/third_party/skia/src/animator/
DSkDisplayEvents.cpp51 int keyCode = state ? state->fCode : 0; in doEvent() local
60 …if ((int) evt->code > keyCode || (int) (evt->fMax != (SkKey) -1 ? evt->fMax : evt->code) < keyCode) in doEvent()
62 evt->fLastCode = (SkKey) keyCode; in doEvent()
98 int keyCode = state ? state->fCode : 0; in removeEvent() local
105 …if ((int) evt->code > keyCode || (int) (evt->fMax != (SkKey) -1 ? evt->fMax : evt->code) < keyCode) in removeEvent()
/external/chromium_org/third_party/WebKit/Source/web/tests/
DKeyboardTest.cpp69 char keyCode, in setupKeyDownEvent() argument
72 keyboardEvent->windowsKeyCode = keyCode; in setupKeyDownEvent()
75 keyboardEvent->text[0] = keyCode; in setupKeyDownEvent()
82 const char* interpretOSModifierKeyPress(char keyCode) in interpretOSModifierKeyPress() argument
90 setupKeyDownEvent(&keyboardEvent, keyCode, osModifier); in interpretOSModifierKeyPress()
95 const char* interpretCtrlKeyPress(char keyCode) in interpretCtrlKeyPress() argument
98 setupKeyDownEvent(&keyboardEvent, keyCode, WebInputEvent::ControlKey); in interpretCtrlKeyPress()
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/ui/
DKeyboardShortcut.js135 WebInspector.KeyboardShortcut.makeKey = function(keyCode, modifiers) argument
137 if (typeof keyCode === "string")
138 keyCode = keyCode.charCodeAt(0) - (/^[a-z]/.test(keyCode) ? 32 : 0);
140 return WebInspector.KeyboardShortcut._makeKeyFromCodeAndModifiers(keyCode, modifiers);
162 return keyboardEvent.keyCode || keyboardEvent["__keyCode"];
252 WebInspector.KeyboardShortcut._makeKeyFromCodeAndModifiers = function(keyCode, modifiers) argument
254 return (keyCode & 255) | (modifiers << 8);
263 return { keyCode: key & 255, modifiers: key >> 8 };
/external/chromium_org/remoting/android/java/src/org/chromium/chromoting/
DDesktop.java186 int keyCode = event.getKeyCode(); in dispatchKeyEvent() local
189 if (keyCode == KeyEvent.KEYCODE_BACK) { in dispatchKeyEvent()
209 int unicode = keyCode != KeyEvent.KEYCODE_ENTER ? event.getUnicodeChar() : 0; in dispatchKeyEvent()
216 mPressedTextKeys.add(keyCode); in dispatchKeyEvent()
222 if (!pressed && mPressedTextKeys.contains(keyCode)) { in dispatchKeyEvent()
223 mPressedTextKeys.remove(keyCode); in dispatchKeyEvent()
227 switch (keyCode) { in dispatchKeyEvent()
250 return JniInterface.sendKeyEvent(keyCode, pressed); in dispatchKeyEvent()
/external/replicaisland/src/com/replica/replicaisland/
DKeyboardConfigDialogPreference.java211 public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) { in onKey() argument
217 mLeftText.setText(getKeyLabel(keyCode)); in onKey()
218 mLeftKeyCode = keyCode; in onKey()
221 mRightText.setText(getKeyLabel(keyCode)); in onKey()
222 mRightKeyCode = keyCode; in onKey()
225 mJumpText.setText(getKeyLabel(keyCode)); in onKey()
226 mJumpKeyCode = keyCode; in onKey()
229 mAttackText.setText(getKeyLabel(keyCode)); in onKey()
230 mAttackKeyCode = keyCode; in onKey()
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/input/
DImeAdapter.java320 void sendKeyEventWithKeyCode(int keyCode, int flags) { in sendKeyEventWithKeyCode() argument
323 KeyEvent.ACTION_DOWN, keyCode, 0, 0, in sendKeyEventWithKeyCode()
327 KeyEvent.ACTION_UP, keyCode, 0, 0, in sendKeyEventWithKeyCode()
342 int keyCode = shouldSendKeyEventWithKeyCode(textStr); in checkCompositionQueueAndCallNative() local
345 if (keyCode != COMPOSITION_KEY_CODE) { in checkCompositionQueueAndCallNative()
346 sendKeyEventWithKeyCode(keyCode, in checkCompositionQueueAndCallNative()
350 timeStampMs, keyCode, 0); in checkCompositionQueueAndCallNative()
357 timeStampMs, keyCode, 0); in checkCompositionQueueAndCallNative()
392 boolean sendSyntheticKeyEvent(int eventType, long timestampMs, int keyCode, int unicodeChar) { in sendSyntheticKeyEvent() argument
396 mNativeImeAdapterAndroid, eventType, timestampMs, keyCode, unicodeChar); in sendSyntheticKeyEvent()
[all …]
DGamepadDevice.java129 int keyCode = event.getKeyCode();
130 assert keyCode < 256;
133 mRawButtons[keyCode] = 1.0f;
135 mRawButtons[keyCode] = 0.0f;
/external/chromium_org/chrome/common/extensions/docs/examples/extensions/news_a11y/
Dfeed.js73 if (event.keyCode == 13) {
179 if (event.keyCode == 13) {
204 if (event.keyCode == 32) {
207 (event.keyCode == 37)) {
209 } else if ((this.parentNode.className == 'item') && (event.keyCode == 39)) {
211 } else if (event.keyCode == 40) {
215 } else if (event.keyCode == 38) {
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowGallery.java15 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument
16 switch (keyCode) { in onKeyDown()
20 onKeyListener.onKey(gallery, keyCode, event); in onKeyDown()
/external/chromium_org/chrome/browser/resources/chromeos/chromevox/host/chrome/
Dbraille_key_types.js86 cvox.BrailleKeyEvent.keyCodeToCharValue = function(keyCode) { argument
95 return SPECIAL_CODES[keyCode] || keyCode.charCodeAt(0);
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/core/controls/
DCTableCombo.java232 e.keyCode = event.keyCode; in handleTableEvent()
241 e.keyCode = event.keyCode; in handleTableEvent()
267 e.keyCode = event.keyCode; in handleTableEvent()
388 if (event.keyCode == SWT.ARROW_UP || event.keyCode == SWT.ARROW_DOWN) { in handleTextEvent()
390 if (event.keyCode == SWT.ARROW_UP) { in handleTextEvent()
431 e.keyCode = event.keyCode; in handleTextEvent()
442 e.keyCode = event.keyCode; in handleTextEvent()
489 e.keyCode = event.keyCode; in handleTextEvent()
/external/chromium_org/chrome/browser/resources/chromeos/
Dsalsa.js80 if (e.keyCode == '37' || e.keyCode == '38') {
84 } else if (e.keyCode == '39' || e.keyCode == '40') {

12345678910