[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: german keyboard



> I have started working with rdesktop and the german keyboard layout. It
> seems to work fine except ALT GR. No combination with ALT GR (backslash
> pipe) works. Is there a solution for this problem?

There is indeed, someone posted a patch a while ago (attached).

Why didnt this patch go into 1.1 ??

-- 
Matthew Wlazlo		matthew.wlazlo@tuxia.com
Tuxia Labs Australia	www.tuxia.org

Foolproof Operation:
	No provision for adjustment.
From rdesktop-return-1051-mattw=igelaus.com.au@rdesktop.org  Sun Oct  7 17:41:26 2001
Return-Path: <rdesktop-return-1051-mattw=igelaus.com.au@rdesktop.org>
Received: from silkroad.igelaus.com.au (gw.devel.igelaus.com.au [192.168.192.1])
	by Unit77.devel.igelaus.com.au (8.11.2/8.11.0) with ESMTP id f977fNo03722
	for <mattw@unit77.devel.igelaus.com.au>; Sun, 7 Oct 2001 17:41:23 +1000
Received: from tone.orchestra.cse.unsw.EDU.AU (root@tone.orchestra.cse.unsw.EDU.AU [129.94.242.28])
	by silkroad.igelaus.com.au (8.8.8/8.8.8) with SMTP id QAA18548
	for <mattw@igelaus.com.au>; Sun, 7 Oct 2001 16:57:58 +1000
Received: From viking.cse.unsw.edu.au ([129.94.172.9]) (for <mattw@igelaus.com.au>) By
	tone With Smtp ; Sun, 7 Oct 2001 17:38:11 +1000 
Received: (qmail 18356 invoked by uid 1009); 7 Oct 2001 07:50:45 -0000
Received: (qmail 18351 invoked from network); 7 Oct 2001 07:50:44 -0000
Received: from mailout01.sul.t-online.com (HELO mailout01.sul.t-online.de) (194.25.134.80)
  by viking.cse.unsw.edu.au with SMTP; 7 Oct 2001 07:50:44 -0000
Received: from fwd00.sul.t-online.de 
	by mailout01.sul.t-online.de with smtp 
	id 15q8VK-0000tN-00; Sun, 07 Oct 2001 09:37:42 +0200
Received: from gonzo (06120978621-0001@[62.155.179.3]) by fwd00.sul.t-online.com
	with smtp id 15q8VF-0rISieC; Sun, 7 Oct 2001 09:37:37 +0200
From: j.prahm@t-online.de (Jens Prahm)
To: "Rdesktop \(E-Mail\)" <rdesktop@rdesktop.org>
Date: Sun, 7 Oct 2001 09:37:48 +0200
Mailing-List: rdesktop@rdesktop.org
Precedence: bulk
Delivered-To: mailing list rdesktop@rdesktop.org
Reply-To: <j.prahm@t-online.de>
Subject: german keyboard
Message-ID: <000001c14f02$f71aeb70$0a0101cd@gonzo>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
X-Sender: 06120978621-0001@t-dialin.net
Status: RO
Content-Length: 2264
Lines: 81

Hi everyone!

Rdesktop Ver. 1.1.0
===================

I've read about some problems with the german keyboard in the mailing
list. Here is my experience:

When using the german keyboard (0x407) there are problems to get the
`\, `~, `| - signs with W2K.

I've fixed the problem by using some parts of code from the patches of
former realeases. We have to do only some changes in the file `xwin.c.

Here are the changes:

--
ORIGINAL code in `xwin.c:
==========================

               case KeyPress:
                    if (scancode == 0)
                         break;

                    rdp_send_input(ev_time, RDP_INPUT_SCANCODE, 0,
                                scancode, 0);
                    break;

               case KeyRelease:
                    scancode = xwin_translate_key(event.xkey.keycode);
                    if (scancode == 0)
                         break;

                    rdp_send_input(ev_time, RDP_INPUT_SCANCODE,
                                KBD_FLAG_DOWN | KBD_FLAG_UP,
                                scancode, 0);
                    break;

CHANGED code in `xwin.c to:
============================

               case KeyPress:
                    scancode = xwin_translate_key(event.xkey.keycode);
                    if (scancode == 0)
                         break;
                    if (scancode & 0x80)
                         rdp_send_input(ev_time,
RDP_INPUT_SCANCODE,KBD_FLAG_EXT,scancode & 0x7f, 0);
                    else
                         rdp_send_input(ev_time, RDP_INPUT_SCANCODE,0,
scancode, 0);
                    break;

               case KeyRelease:
                    scancode = xwin_translate_key(event.xkey.keycode);
                    if (scancode == 0)
                         break;

                    if (scancode & 0x80)
                         rdp_send_input(ev_time, RDP_INPUT_SCANCODE,
KBD_FLAG_EXT | KBD_FLAG_DOWN | KBD_FLAG_UP, scancode & 0x7f, 0);
                    else
                         rdp_send_input(ev_time,
RDP_INPUT_SCANCODE,KBD_FLAG_DOWN | KBD_FLAG_UP,scancode, 0);
                    break;

--

Re-compile ... and it just works fine with `rdesktop -k 0x407
computer_name!

 -- Jens



--
Jens Prahm

email:  j.prahm@t-online.de