All of lore.kernel.org
 help / color / mirror / Atom feed
* How to make "dead key" capslockable with kbd?
@ 2004-02-03 20:37 Jean Revertera
  2004-02-04  1:46 ` Andries Brouwer
  0 siblings, 1 reply; 2+ messages in thread
From: Jean Revertera @ 2004-02-03 20:37 UTC (permalink / raw)
  To: linux-kernel; +Cc: marv

Hi,

I'm currently trying to customize my keymap file, but I have a problem: 
I'cant make these damn "dead key" correctly capslockable.

As the manpage from keymaps say:
Each  keysym  may  be prefixed by a '+' (plus sign), in which case this
keysym is treated as a "letter" and therefore  affected  by  the  "Cap-
sLock"  the same way as by "Shift"

That's what I have in my keymap file:
[...]
keycode   7 = +dead_circumflex  six        notsign          
Control_asciicircum
        alt     keycode   7 = Meta_six
[...]
With this, when I press the key with keycode 7 and capslock is "on", the 
caracter "6" is effectively displayed. On the other hand, when capslock 
is turned "off", this same key displays immediatly (i.e: is no more a 
dead key):
^B
I load the keymap file with:
loadkeys file.kmap.gz
I'm running linux-2.6.1 on an up-to-date Debian Sid.

Could someone tell me how I can make this working ?

TIA !

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to make "dead key" capslockable with kbd?
  2004-02-03 20:37 How to make "dead key" capslockable with kbd? Jean Revertera
@ 2004-02-04  1:46 ` Andries Brouwer
  0 siblings, 0 replies; 2+ messages in thread
From: Andries Brouwer @ 2004-02-04  1:46 UTC (permalink / raw)
  To: Jean Revertera; +Cc: linux-kernel

On Tue, Feb 03, 2004 at 09:37:21PM +0100, Jean Revertera wrote:

> I'm currently trying to customize my keymap file, but I have a problem: 
> I'cant make these damn "dead key" correctly capslockable.

Roughly speaking - what you want is impossible.
The kernel knows about 13 types of key, and among these are
KT_LATIN, KT_LETTER, KT_DEAD.
Something cannot be both KT_LETTER and KT_DEAD.

Andries


[And then, on the other hand, little is really impossible with the
Linux keyboard driver. You have 256 keymaps to play with, and can
use capslock to select a new keymap and on that map use any assignments
you like.]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-02-04  1:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-03 20:37 How to make "dead key" capslockable with kbd? Jean Revertera
2004-02-04  1:46 ` Andries Brouwer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.