From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KmS4N-0006Xp-M4 for mharc-grub-devel@gnu.org; Sun, 05 Oct 2008 07:46:39 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KmS4L-0006XH-9a for grub-devel@gnu.org; Sun, 05 Oct 2008 07:46:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KmS4K-0006WU-Gv for grub-devel@gnu.org; Sun, 05 Oct 2008 07:46:36 -0400 Received: from [199.232.76.173] (port=36197 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KmS4K-0006WO-Bp for grub-devel@gnu.org; Sun, 05 Oct 2008 07:46:36 -0400 Received: from mta-out.inet.fi ([195.156.147.13]:39540 helo=kirsi1.inet.fi) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KmS4K-0004yW-3b for grub-devel@gnu.org; Sun, 05 Oct 2008 07:46:36 -0400 Received: from [127.0.0.1] (84.248.105.254) by kirsi1.inet.fi (8.5.014) id 48DA2F890092B9B0 for grub-devel@gnu.org; Sun, 5 Oct 2008 14:46:35 +0300 Message-ID: <48E8A927.1000000@nic.fi> Date: Sun, 05 Oct 2008 14:46:47 +0300 From: =?UTF-8?B?VmVzYSBKw6TDpHNrZWzDpGluZW4=?= User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: The development of GRUB 2 References: <20080928215812.GC5259@pina.cat> <48E11DF2.3050804@nic.fi> <20081005110556.GC5541@thorin> In-Reply-To: <20081005110556.GC5541@thorin> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: Quoted-Printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: [RFC] Different keyborad layouts X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Oct 2008 11:46:37 -0000 Robert Millan wrote: > On Mon, Sep 29, 2008 at 09:26:58PM +0300, Vesa J=C3=A4=C3=A4skel=C3=A4i= nen wrote: >> Remember that in some keyboard you need to press combos in order to >> generate some character. Like in Finnish keyboard you press alt-gr + e >> in order to generate euro sign (or alt-gr + 5). Also there are >> multi-keypress sequences like in order to make '^' this sign you have = to >> press ctrl + '^' button and when released then press space. If you >> happen to press in example 'a' after ctrl + '^' key you get '=C3=A2'. = And I >> do not think this is the only keyboard with this feature. Also there i= s >> those dec input sequences like alt+number sequence. In example alt >> (pressed) + '6', '5' you get 'A'. >=20 > Do we really want to support all keys (and therefore all minor keyboard > variants) out there, or just those needed for metacharacters like '/' a= nd > such? Probably not. But anyway... I would like simple combos to be handled nicely. Like shift+7 (forward slash). And then if you have some weird keyboard you should be able to generate unicode key based on some easy way and to handle capslock + shift to make lowercase and uppercase characters. >> I do not like the idea of using variable for this as it will most like= ly >> require loading of keymap definition form disk. So I would prefer some= thing: >> >> insmod keymap >> keymap /boot/grub/keyboard/fi >=20 > Seems fine to me. Note, however, that with the information currently e= xported > by e.g. at_keyboard.c it isn't possible to tell when special combinatio= ns like > "alt-gr + 5" were pressed. We need to uniform keyboard handling in way that USB and AT and bios keyboards get handled in same path. Now the next issue is if we have like two usb keyboards. How it should work in grub's case is that both is listened for input.