36 |
extern int keylayout; |
extern int keylayout; |
37 |
extern BOOL enable_compose; |
extern BOOL enable_compose; |
38 |
|
|
39 |
|
static BOOL keymap_loaded; |
40 |
static key_translation keymap[KEYMAP_SIZE]; |
static key_translation keymap[KEYMAP_SIZE]; |
41 |
static int min_keycode; |
static int min_keycode; |
42 |
static uint16 remote_modifier_state = 0; |
static uint16 remote_modifier_state = 0; |
207 |
unsigned int max_keycode; |
unsigned int max_keycode; |
208 |
|
|
209 |
if (strcmp(keymapname, "none")) |
if (strcmp(keymapname, "none")) |
210 |
xkeymap_read(keymapname); |
{ |
211 |
|
if (xkeymap_read(keymapname)) |
212 |
|
keymap_loaded = True; |
213 |
|
} |
214 |
|
|
215 |
XDisplayKeycodes(display, &min_keycode, (int *) &max_keycode); |
XDisplayKeycodes(display, &min_keycode, (int *) &max_keycode); |
216 |
} |
} |
328 |
return tr; |
return tr; |
329 |
} |
} |
330 |
|
|
331 |
DEBUG_KBD(("No translation for (keysym 0x%lx, %s)\n", keysym, get_ksname(keysym))); |
if (keymap_loaded) |
332 |
|
error("No translation for (keysym 0x%lx, %s)\n", keysym, get_ksname(keysym)); |
333 |
|
|
334 |
/* not in keymap, try to interpret the raw scancode */ |
/* not in keymap, try to interpret the raw scancode */ |
335 |
if ((keycode >= min_keycode) && (keycode <= 0x60)) |
if ((keycode >= min_keycode) && (keycode <= 0x60)) |