Home
last modified time | relevance | path

Searched refs:keysym (Results 1 – 25 of 52) sorted by relevance

123

/external/libxkbcommon/src/
Dkeysym-utf.c46 uint16_t keysym; member
843 bin_search(const struct codepair *table, size_t length, xkb_keysym_t keysym) in bin_search() argument
848 if (keysym < table[0].keysym || keysym > table[length].keysym) in bin_search()
854 if (table[mid].keysym < keysym) in bin_search()
856 else if (table[mid].keysym > keysym) in bin_search()
867 xkb_keysym_to_utf32(xkb_keysym_t keysym) in xkb_keysym_to_utf32() argument
870 if ((keysym >= 0x0020 && keysym <= 0x007e) || in xkb_keysym_to_utf32()
871 (keysym >= 0x00a0 && keysym <= 0x00ff)) in xkb_keysym_to_utf32()
872 return keysym; in xkb_keysym_to_utf32()
875 if (keysym == XKB_KEY_KP_Space) in xkb_keysym_to_utf32()
[all …]
Dkeysym.c69 if (*key < entry->keysym) in compare_by_keysym()
71 if (*key > entry->keysym) in compare_by_keysym()
137 if (icase && xkb_keysym_is_lower(entry->keysym)) in find_sym()
145 if (icase && xkb_keysym_is_lower(iter->keysym)) in find_sym()
155 if (icase && xkb_keysym_is_lower(iter->keysym)) in find_sym()
181 return entry->keysym; in xkb_keysym_from_name()
223 xkb_keysym_is_keypad(xkb_keysym_t keysym) in xkb_keysym_is_keypad() argument
225 return keysym >= XKB_KEY_KP_Space && keysym <= XKB_KEY_KP_Equal; in xkb_keysym_is_keypad()
230 xkb_keysym_is_modifier(xkb_keysym_t keysym) in xkb_keysym_is_modifier() argument
233 (keysym >= XKB_KEY_Shift_L && keysym <= XKB_KEY_Hyper_R) || in xkb_keysym_is_modifier()
[all …]
Dkeysym.h54 xkb_keysym_is_lower(xkb_keysym_t keysym);
57 xkb_keysym_is_upper(xkb_keysym_t keysym);
60 xkb_keysym_is_keypad(xkb_keysym_t keysym);
63 xkb_keysym_is_modifier(xkb_keysym_t keysym);
Dks_tables.h2428 xkb_keysym_t keysym; member
/external/skia/tools/sk_app/unix/
Dkeysym2ucs.c40 unsigned short keysym; member
818 long keysym2ucs(KeySym keysym) in keysym2ucs() argument
825 if ((keysym >= 0x0020 && keysym <= 0x007e) || in keysym2ucs()
826 (keysym >= 0x00a0 && keysym <= 0x00ff)) in keysym2ucs()
827 return keysym; in keysym2ucs()
830 if ((keysym & 0xff000000) == 0x01000000) in keysym2ucs()
831 return keysym & 0x00ffffff; in keysym2ucs()
836 if (keysymtab[mid].keysym < keysym) in keysym2ucs()
838 else if (keysymtab[mid].keysym > keysym) in keysym2ucs()
DWindow_unix.cpp194 static skui::Key get_key(KeySym keysym) { in get_key() argument
227 if (gPair[i].fXK == keysym) { in get_key()
297 KeySym keysym = XkbKeycodeToKeysym(fDisplay, event.xkey.keycode, 0, shiftLevel); in handleEvent() local
298 skui::Key key = get_key(keysym); in handleEvent()
301 if (keysym == XK_Escape) { in handleEvent()
307 long uni = keysym2ucs(keysym); in handleEvent()
315 KeySym keysym = XkbKeycodeToKeysym(fDisplay, event.xkey.keycode, in handleEvent() local
317 skui::Key key = get_key(keysym); in handleEvent()
Dkeysym2ucs.h14 long keysym2ucs(KeySym keysym);
/external/skqp/tools/sk_app/unix/
Dkeysym2ucs.c40 unsigned short keysym; member
818 long keysym2ucs(KeySym keysym) in keysym2ucs() argument
825 if ((keysym >= 0x0020 && keysym <= 0x007e) || in keysym2ucs()
826 (keysym >= 0x00a0 && keysym <= 0x00ff)) in keysym2ucs()
827 return keysym; in keysym2ucs()
830 if ((keysym & 0xff000000) == 0x01000000) in keysym2ucs()
831 return keysym & 0x00ffffff; in keysym2ucs()
836 if (keysymtab[mid].keysym < keysym) in keysym2ucs()
838 else if (keysymtab[mid].keysym > keysym) in keysym2ucs()
DWindow_unix.cpp187 static Window::Key get_key(KeySym keysym) { in get_key() argument
220 if (gPair[i].fXK == keysym) { in get_key()
290 KeySym keysym = XkbKeycodeToKeysym(fDisplay, event.xkey.keycode, 0, shiftLevel); in handleEvent() local
291 Window::Key key = get_key(keysym); in handleEvent()
294 if (keysym == XK_Escape) { in handleEvent()
300 long uni = keysym2ucs(keysym); in handleEvent()
308 KeySym keysym = XkbKeycodeToKeysym(fDisplay, event.xkey.keycode, in handleEvent() local
310 Window::Key key = get_key(keysym); in handleEvent()
Dkeysym2ucs.h14 long keysym2ucs(KeySym keysym);
/external/libxkbcommon/test/
Dkeysym.c33 xkb_keysym_t keysym; in test_string() local
35 keysym = xkb_keysym_from_name(string, 0); in test_string()
38 fprintf(stderr, "Received string %s -> %x\n\n", string, keysym); in test_string()
40 return keysym == expected; in test_string()
46 xkb_keysym_t keysym; in test_casestring() local
48 keysym = xkb_keysym_from_name(string, XKB_KEYSYM_CASE_INSENSITIVE); in test_casestring()
51 fprintf(stderr, "Received casestring %s -> %x\n\n", string, keysym); in test_casestring()
53 return keysym == expected; in test_casestring()
57 test_keysym(xkb_keysym_t keysym, const char *expected) in test_keysym() argument
61 xkb_keysym_get_name(keysym, s, sizeof(s)); in test_keysym()
[all …]
Dcommon.c73 xkb_keysym_t keysym; in test_key_seq_va() local
103 keysym = va_arg(ap, int); in test_key_seq_va()
107 if (keysym == FINISH || keysym == NEXT) { in test_key_seq_va()
113 if (keysym != syms[i]) { in test_key_seq_va()
114 xkb_keysym_get_name(keysym, ksbuf, sizeof(ksbuf)); in test_key_seq_va()
123 keysym = va_arg(ap, int); in test_key_seq_va()
124 if (keysym != XKB_KEY_NoSymbol) { in test_key_seq_va()
125 xkb_keysym_get_name(keysym, ksbuf, sizeof(ksbuf)); in test_key_seq_va()
133 keysym = va_arg(ap, int); in test_key_seq_va()
134 if (keysym == NEXT) in test_key_seq_va()
[all …]
Dcompose.c82 xkb_keysym_t keysym, expected_keysym; in test_compose_seq_va() local
128 keysym = xkb_compose_state_get_one_sym(state); in test_compose_seq_va()
129 if (keysym != expected_keysym) { in test_compose_seq_va()
133 xkb_keysym_get_name(keysym, buffer, sizeof(buffer)); in test_compose_seq_va()
134 fprintf(stderr, "got keysym (%#x): %s\n", keysym, buffer); in test_compose_seq_va()
/external/python/cpython2/Lib/idlelib/
DAutoCompleteWindow.py261 keysym = event.keysym
266 if keysym != "Tab":
268 if (len(keysym) == 1 or keysym in ("underscore", "BackSpace")
269 or (self.mode == COMPLETE_FILES and keysym in
273 if len(keysym) == 1:
274 self._change_start(self.start + keysym)
275 elif keysym == "underscore":
277 elif keysym == "period":
279 elif keysym == "minus":
293 elif keysym == "Return":
[all …]
/external/libxkbcommon/src/compose/
Dstate.c92 xkb_compose_state_feed(struct xkb_compose_state *state, xkb_keysym_t keysym) in xkb_compose_state_feed() argument
107 if (xkb_keysym_is_modifier(keysym)) in xkb_compose_state_feed()
115 while (node->keysym != keysym && node->next != 0) { in xkb_compose_state_feed()
120 if (node->keysym != keysym) in xkb_compose_state_feed()
167 if (node->u.leaf.utf8 == 0 && node->u.leaf.keysym != XKB_KEY_NoSymbol) { in xkb_compose_state_get_utf8()
171 ret = xkb_keysym_to_utf8(node->u.leaf.keysym, name, sizeof(name)); in xkb_compose_state_get_utf8()
197 return node->u.leaf.keysym; in xkb_compose_state_get_one_sym()
Dparser.c319 xkb_keysym_t keysym; member
331 add_node(struct xkb_compose_table *table, xkb_keysym_t keysym) in add_node() argument
334 .keysym = keysym, in add_node()
364 while (production->lhs[lhs_pos] != node->keysym) { in add_production()
381 node->u.leaf.keysym != XKB_KEY_NoSymbol) { in add_production()
384 node->u.leaf.keysym = XKB_KEY_NoSymbol; in add_production()
405 if (node->u.leaf.utf8 != 0 || node->u.leaf.keysym != XKB_KEY_NoSymbol) { in add_production()
414 (node->u.leaf.keysym == XKB_KEY_NoSymbol && !production->has_keysym) || in add_production()
416 node->u.leaf.keysym != XKB_KEY_NoSymbol && production->has_keysym && in add_production()
417 node->u.leaf.keysym == production->keysym in add_production()
[all …]
Dtable.h72 xkb_keysym_t keysym; member
83 xkb_keysym_t keysym; member
Dtable.c61 root.keysym = XKB_KEY_NoSymbol; in xkb_compose_table_new()
65 root.u.leaf.keysym = XKB_KEY_NoSymbol; in xkb_compose_table_new()
/external/python/cpython3/Lib/idlelib/
Dautocomplete_w.py311 keysym = event.keysym
316 if keysym != "Tab":
318 if (len(keysym) == 1 or keysym in ("underscore", "BackSpace")
319 or (self.mode == FILES and keysym in
323 if len(keysym) == 1:
324 self._change_start(self.start + keysym)
325 elif keysym == "underscore":
327 elif keysym == "period":
329 elif keysym == "minus":
343 elif keysym == "Return":
[all …]
/external/libxkbcommon/tools/
Dhow-to-type.c56 xkb_keysym_t keysym; in main() local
124 keysym = xkb_utf32_to_keysym(codepoint); in main()
125 if (keysym == XKB_KEY_NoSymbol) { in main()
130 ret = xkb_keysym_get_name(keysym, name, sizeof(name)); in main()
156 printf("keysym: %s (%#x)\n", name, keysym); in main()
195 if (syms[0] != keysym) { in main()
/external/libxkbcommon/bench/
Dkey-proc.c39 xkb_keysym_t keysym; in bench_key_proc() local
47 keysym = xkb_state_key_get_one_sym(state, keycode); in bench_key_proc()
48 (void) keysym; in bench_key_proc()
/external/skqp/tools/sk_app/ios/
DWindow_ios.cpp98 static Window::Key get_key(const SDL_Keysym& keysym) { in get_key() argument
131 if (gPair[i].fSDLK == keysym.sym) { in get_key()
155 if (event.key.keysym.mod & gModifiers[i].fSDLMask) { in get_modifiers()
216 Window::Key key = get_key(event.key.keysym); in handleEvent()
219 if (event.key.keysym.sym == SDLK_ESCAPE) { in handleEvent()
227 Window::Key key = get_key(event.key.keysym); in handleEvent()
/external/curl/packages/vms/
Dconfig_h.com1060 $ keysym = key2b
1061 $ if key2c .nes. "" then keysym = keysym + "_" + key2c
1062 $ if key2d .nes. "" then keysym = keysym + "_" + key2d
1063 $ if key2e .nes. "" then keysym = keysym + "_" + key2e
1080 $ keysym = "ST" + "_" + key2c
1081 $ keysym = f$edit(keysym,"LOWERCASE")
1087 $ keysym = f$edit(key2b, "LOWERCASE")
1100 $ keysym = "f_" + f$edit(key2c,"LOWERCASE")
1108 $ keysym = "ut_" + f$edit(key2d,"LOWERCASE")
1132 $ if keysym .eqs. "CRYPT"
[all …]
/external/libxkbcommon/doc/
Dquick-guide.md124 from it. Given a keycode for a key, we can get its keysym:
129 xkb_keysym_t keysym;
132 keysym = xkb_state_key_get_one_sym(state, keycode);
135 We can see which keysym we got, and get its name:
140 if (keysym == XKB_KEY_Space)
143 xkb_keysym_get_name(keysym, keysym_name, sizeof(keysym_name));
/external/libxkbcommon/xkbcommon/
Dxkbcommon.h435 xkb_keysym_get_name(xkb_keysym_t keysym, char *buffer, size_t size);
488 xkb_keysym_to_utf8(xkb_keysym_t keysym, char *buffer, size_t size);
503 xkb_keysym_to_utf32(xkb_keysym_t keysym);

123