Re: Specialization of Nedit for X11
Re: Specialization of Nedit for X11
- Subject: Re: Specialization of Nedit for X11
- From: Ben Byer <email@hidden>
- Date: Thu, 15 Nov 2007 18:34:50 -0800
On Nov 15, 2007, at 3:06 PM, Nathaniel Gray wrote:
On Nov 15, 2007 2:10 PM, Barto, David <email@hidden> wrote:
I'm working on modification Nedit for X11 (hello n8) and I'd like
to use the
option key as the modifier. (We hates the control key, hates them
we do.)
In Tiger I use 'Meta' to get to the option key, and Mod2 gets me
the Apple
key. In Leopard Mod1 doesn't work and neither does Meta.
What key do I use in my Xresources file to get Nedit to see the
option key
as a quick keystroke.
A part of my .Xresources:
nedit*searchMenu.find.accelerator: Mod2<Key>f
nedit*searchMenu.findShift.accelerator: Shift Mod2<Key>f
nedit*searchMenu.findAgain.acceleratorText: Mod2<key>g
nedit*searchMenu.findAgainShift.accelerator: Shift Mod2<key>g
!
!
nedit*text.Translations: #override \n\
Ctrl<Key>W: delete-previous-word()\n\
Ctrl<Key>E: end-of-line()\n\
Meta<KeyPress>osfDown: next-page()\n\
Meta<KeyPress>osfUp: previous-page()\n
I'll admit, this stuff makes my head spin. There are just too many
layers of indirection involved. When I'm working this all out for
myself I usually fire up xev to see what X thinks each key is and go
from there. In Leopard's X, my left option key is being seen as
Mode_switch for some reason. My right option key is seen as Alt_R. I
haven't attempted to straighten this out yet, though.
Me too! (Now we're all screwed!)
On a more serious note, take a look at this: http://gitweb.freedesktop.org/?p=xorg/xserver.git;a=blob;h=3685bffff2f7fb30827987c0c9b5e404c4141335;hb=xorg-server-1.2-apple;f=hw/darwin/darwinKeyboard.c#l64
Should we try disabling that? (Anyone know what that will break?)
--
Ben Byer
CoreOS / BSD Technology Group, XDarwin maintainer
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden