diff options
author | jsorg71 <jsorg71> | 2006-12-09 19:30:57 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2006-12-09 19:30:57 +0000 |
commit | b295e08ad2f450f5bda8682d82a865b0db531382 (patch) | |
tree | 0f9af7c907deb72b639679f30b19e5f65acfec94 /xrdp | |
parent | 778b1489d767fdf89befe8be9a91e3ee9e0aed1e (diff) | |
download | xrdp-proprietary-b295e08ad2f450f5bda8682d82a865b0db531382.tar.gz xrdp-proprietary-b295e08ad2f450f5bda8682d82a865b0db531382.zip |
let module decide if alt-gr needs to be ignored
Diffstat (limited to 'xrdp')
-rw-r--r-- | xrdp/lang.c | 12 | ||||
-rw-r--r-- | xrdp/xrdp_wm.c | 8 |
2 files changed, 1 insertions, 19 deletions
diff --git a/xrdp/lang.c b/xrdp/lang.c index 33b9f4e3..72733916 100644 --- a/xrdp/lang.c +++ b/xrdp/lang.c @@ -431,54 +431,42 @@ get_char_from_scan_code(int device_flags, int scan_code, int* keys, int shift; int altgr; int ext; - int has_altgr; if (keylayout == 0x40c) /* france */ { keys_noshift = fr_noshift; keys_shift = fr_shift; keys_altgr = fr_altgr; - has_altgr = 1; } else if (keylayout == 0x809) /* en-uk or en-gb */ { keys_noshift = en_uk_noshift; keys_shift = en_uk_shift; keys_altgr = en_uk_altgr; - has_altgr = 1; } else if (keylayout == 0x407) /* german */ { keys_noshift = de_noshift; keys_shift = de_shift; keys_altgr = de_altgr; - has_altgr = 1; } else if (keylayout == 0x416) /* Portuguese (Brazil) */ { keys_noshift = pt_br_noshift; keys_shift = pt_br_shift; keys_altgr = pt_br_altgr; - has_altgr = 1; } else if (keylayout == 0x410) /* italy */ { keys_noshift = it_noshift; keys_shift = it_shift; keys_altgr = it_altgr; - has_altgr = 1; } else /* english us 0x409 */ { keys_noshift = en_us_noshift; keys_shift = en_us_shift; keys_altgr = en_us_altgr; - has_altgr = 0; - } - /* don't send altgr */ - if (has_altgr && (scan_code == 56) && (device_flags & 0x100)) - { - return 1; } /*g_writeln("%d %d %x", scan_code, device_flags, keylayout);*/ shift = keys[42] || keys[54]; diff --git a/xrdp/xrdp_wm.c b/xrdp/xrdp_wm.c index 9c6cdb2f..401a5e4f 100644 --- a/xrdp/xrdp_wm.c +++ b/xrdp/xrdp_wm.c @@ -1171,13 +1171,7 @@ xrdp_wm_key(struct xrdp_wm* self, int device_flags, int scan_code) self->num_lock, self->scroll_lock, self->session->client_info->keylayout); - /* this means don't send anything */ - /* used to qvoid sending alt to xserver eg altgr */ - /* if alt state is down, the xserver avoids the keystroke */ - if (c == 1) - { - } - else if (c != 0) + if (c != 0) { self->mod->mod_event(self->mod, msg, (unsigned char)c, 0xffff, scan_code, device_flags); |