Lines Matching refs:ndx
97 static long xkeycode2keysym_noxkb(XKeyEvent ev, int ndx) {
100 return XlibWrapper.XKeycodeToKeysym(ev.get_display(), ev.get_keycode(), ndx);
105 static long xkeycode2keysym_xkb(XKeyEvent ev, int ndx) {
109 if ((ndx == 0) && ((mods & XConstants.ShiftMask) != 0)) {
110 // I don't know all possible meanings of 'ndx' in case of XKB
130 static long xkeycode2keysym(XKeyEvent ev, int ndx) {
134 return xkeycode2keysym_xkb(ev, ndx);
136 return xkeycode2keysym_noxkb(ev, ndx);
149 int ndx = XToolkit.isXsunKPBehavior() &&
153 // bugs like 6454041. So, we will try for keypadness a keysym with ndx==0 as well.
157 XlibWrapper.XKeycodeToKeysym(ev.get_display(), ev.get_keycode(), ndx ) ) ||
195 int ndx = 0;
200 ndx = 3;
201 keysym = xkeycode2keysym(ev, ndx);
203 ndx = 2;
204 keysym = xkeycode2keysym(ev, ndx);
210 ndx = 0;
211 keysym = xkeycode2keysym(ev, ndx);
213 ndx = 1;
214 keysym = xkeycode2keysym(ev, ndx);
252 int ndx = 0;
258 ndx = 0;
259 keysym = xkeycode2keysym(ev, ndx);
278 int ndx = 0;
284 ndx = 0;
285 keysym = xkeycode2keysym_noxkb(ev, ndx);
307 int ndx = 0;
315 // Shift & Lock are off ===> ndx = 0;
316 // Shift off & Lock on & Lock is CapsLock ===> ndx = 0;
317 // if keysym[ndx] is lowecase alphabetic, then corresp. uppercase used.
318 // Shift on & Lock on & Lock is CapsLock ===> ndx == 1;
319 // if keysym[ndx] is lowecase alphabetic, then corresp. uppercase used.
320 // Shift on || (Lock on & Lock is ShiftLock) ===> ndx = 1.
323 ndx = 0;
327 ndx = 0;
331 ndx = 1;
337 ndx = 1;
340 ndx = 1;
344 keysym = xkeycode2keysym(ev, ndx);