thanks for info, I was not aware of 'xev', it's really helpful app.

However, my basic problem remains... I was trying to set up lyx for a 
colleague who is working on Win. I dont know much about key-handling in win, 
so I thought I will use  lyx mechanisms for key-binding.

But I guess, the best think is to look for a proper windows keyboard layout.

Vasek

On Thursday 10 February 2005 08:31, Eric S Fraga wrote:
> On Wed, Feb 09, 2005 at 07:54:02PM +0100, Vaclav Smidl wrote:
> > I am trying to modify some key binding files to get the following:
> >
> > if I press regular "1"     insert "x" (for example)
> > if I press numeric "1"     insert "1"
> >
> > I am struggling with the following:
> > If I use \kmap:
> > it does not distinguish regular and numeric "1".
> >
> > If I use:
> > \bind "1"   "self-insert x"
> > \bind "KP_1"   "self-insert 1"
> > I am getting always 1,
> >
> > If I use:
> > \bind "KP_1"   "self-insert 1"
> > \bind "1"   "self-insert x"
> > I am getting always x.
> >
> > Any thoughts, workarounds?
>
> I can't help you directly with lyx and how it handles bindings like these
> but one possible workaround (which will unfortunately affect other
> applications as well), assuming you are using X11 and not MS Windows, is to
> re-map the keypad 1 key to something else using 'xmodmap'. For instance,
> you could map it to F23 (a function key that might not already exist on
> your keyboard).  You can use 'xev' to find out the keycode for each key on
> your keyboard.
>
> HTH,
> eric

-- 
-----------------------------------------------------------------------------
Ing. Vaclav Smidl, Ph.D.                tel: +420 26605 2420
AS department,  Institute               web: http://www.utia.cas.cz/AS/smidl/
of Information Theory and Automation,   fax: +420 26605 2068
Prague, Czech Republic

Reply via email to