diff options
author | jsorg71 <jsorg71> | 2009-08-12 02:13:29 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2009-08-12 02:13:29 +0000 |
commit | 4369219ae305d3616ae65691bfd1fda787ed5281 (patch) | |
tree | 985ccd8d035c40b4ab000e9c1f6c52c476b6d3c1 /xrdp/xrdp_wm.c | |
parent | 85ae1cd27e76204b0a196d9a8dab3d5262a3bb9a (diff) | |
download | xrdp-proprietary-4369219ae305d3616ae65691bfd1fda787ed5281.tar.gz xrdp-proprietary-4369219ae305d3616ae65691bfd1fda787ed5281.zip |
keymap changes
Diffstat (limited to 'xrdp/xrdp_wm.c')
-rw-r--r-- | xrdp/xrdp_wm.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/xrdp/xrdp_wm.c b/xrdp/xrdp_wm.c index 1bdc961f..ed55efd3 100644 --- a/xrdp/xrdp_wm.c +++ b/xrdp/xrdp_wm.c @@ -1090,7 +1090,7 @@ int APP_CC xrdp_wm_key(struct xrdp_wm* self, int device_flags, int scan_code) { int msg; - int c; + struct xrdp_key_info* ki; /*g_printf("count %d\n", self->key_down_list->count);*/ scan_code = scan_code % 128; @@ -1125,19 +1125,14 @@ xrdp_wm_key(struct xrdp_wm* self, int device_flags, int scan_code) { if (self->mm->mod->mod_event != 0) { - c = get_char_from_scan_code + ki = get_key_info_from_scan_code (device_flags, scan_code, self->keys, self->caps_lock, self->num_lock, self->scroll_lock, &(self->keymap)); - if (c != 0) - { - self->mm->mod->mod_event(self->mm->mod, msg, c, - 0xffff, scan_code, device_flags); - } - else + if (ki != 0) { self->mm->mod->mod_event(self->mm->mod, msg, scan_code, - device_flags, scan_code, device_flags); + device_flags, ki->sym, ki->chr); } } } |