Discussion:
Need help changing key bindings
Paterline, David L.
2008-07-03 20:19:42 UTC
Permalink
Hello -



I'm trying to bind ctrl-y to the Edit -> Redo function, and having no
success.



After reading the 'help' information, I've tried adding this to my X
defaults file:



nedit*editMenu.redo.acceleratorText: Ctrl+y

nedit*editMenu.redo.accelerator: Ctrl<Key>Y



and I've tried this:



NEdit*text.Translations: #override \n\

Ctrl<Key>y: redo() \n



but neither one worked.



Can this be done by setting something in my ~/.nedit file? Or, does it
have to be done using X resources?



Can anyone provide some assistance.



Thank you.



-
David L. Paterline
Principal Engineer
Westinghouse Electric Company
Nuclear Fuel Engineering
Engineering Computing
paterldl-***@public.gmane.org
PH: 412-374-2286
FX: 412-374-2284
--
NEdit Discuss mailing list - Discuss-***@public.gmane.org
http://www.nedit.org/mailman/listinfo/discuss
AVKuznetsov
2008-07-04 08:03:31 UTC
Permalink
On Thu, 3 Jul 2008 16:19:42 -0400
Post by Paterline, David L.
Hello -
I'm trying to bind ctrl-y to the Edit -> Redo function, and having no
success.
After reading the 'help' information, I've tried adding this to my X
nedit*editMenu.redo.acceleratorText: Ctrl+y
nedit*editMenu.redo.accelerator: Ctrl<Key>Y
NEdit*text.Translations: #override \n\
Ctrl<Key>y: redo() \n
but neither one worked.
Hi David,

Ctrl+Y is bound to "Open Selected" in the File menu, so
you must remove this binding from Xresources at first.

nedit*fileMenu.openSelected.accelerator:

Then you can either add above mentioned to Xresources

nedit*text.Translations: #override \n\
Ctrl<Key>y: redo() \n

or add binding you want via
Preferences> Default Settings> Customize Menus> Macro or Window Background menus

Alexey Kuznetsov
--
NEdit Discuss mailing list - Discuss-***@public.gmane.org
http://www.nedit.org/mailman/listinfo/discuss
Paterline, David L.
2008-07-07 13:39:34 UTC
Permalink
Works great. I was missing the part about removing the pre-defined key
binding. Thank you.

-
David L. Paterline
Principal Engineer
Westinghouse Electric Company
Nuclear Fuel Engineering
Engineering Computing
paterldl-***@public.gmane.org
PH: 412-374-2286
FX: 412-374-2284

-----Original Message-----
From: discuss-bounces-***@public.gmane.org [mailto:discuss-bounces-***@public.gmane.org] On
Behalf Of AVKuznetsov
Sent: Friday, July 04, 2008 4:04 AM
To: discuss-***@public.gmane.org
Subject: Re: Need help changing key bindings

On Thu, 3 Jul 2008 16:19:42 -0400
Post by Paterline, David L.
Hello -
I'm trying to bind ctrl-y to the Edit -> Redo function, and having no
success.
After reading the 'help' information, I've tried adding this to my X
nedit*editMenu.redo.acceleratorText: Ctrl+y
nedit*editMenu.redo.accelerator: Ctrl<Key>Y
NEdit*text.Translations: #override \n\
Ctrl<Key>y: redo() \n
but neither one worked.
Hi David,

Ctrl+Y is bound to "Open Selected" in the File menu, so
you must remove this binding from Xresources at first.

nedit*fileMenu.openSelected.accelerator:

Then you can either add above mentioned to Xresources

nedit*text.Translations: #override \n\
Ctrl<Key>y: redo() \n

or add binding you want via
Preferences> Default Settings> Customize Menus> Macro or Window
Background menus

Alexey Kuznetsov
--
NEdit Discuss mailing list - Discuss-***@public.gmane.org
http://www.nedit.org/mailman/listinfo/discuss
--
NEdit Discuss mailing list - Discuss-***@public.gmane.org
http://www.nedit.org/mailman/listinfo/discuss
Loading...