Re: Keyboard shortcuts (KDE, NEdit) confusion

Offer Kaye <[email protected]>
Newsgroups gmane.editors.nedit.user
Message-ID <[email protected]>
On Tue, Mar 31, 2009 at 11:16 AM, Matthijs van Aalten wrote:
> Hi,
>
> It's been a long time since I last used this mailing list for support - but I'm not able to solve the following problem myself:
>
> Using alt+Left and alt+Right used to do next_document() and previous_document() - doesn't work anymore.
>

It must have been something custom you had, since the default for
these are Ctrl+PageUp and Ctrl+PageDown. Reference:
http://www.nedit.org/help/keyboard.php#Keyboard_Shortcuts
"    Alt+Home      Switch to the previously active document.

    Ctrl+PageUp   Switch to the previous document.

    Ctrl+PageDown Switch to the next document.
"

>
> - NEdit *does* receive the keyboard codes. When I define a macro (Preferences->Default Settings->Customize
> Menus->Macro Menu), I can set the accelerator keyboard shortcut to Alt+Left. But the shortcut doesn't do anything
> after defining it.

According to Nedit documentation, you cannot use this method to set
existing bindings. Reference:
http://www.nedit.org/help/binding.php#Key_Binding
"However, if you want to change existing bindings ... you will need to
do so via X resources."

>
> - I tried to define it manually by adding:
> NEdit*text.Translations: #override\n\
>     Alt<KeyPress>Right: next_document()\n\ ... to the NEdit application defaults file. No luck.
>

I'm not sure this is correct - where did you find an Action Routine
called "next_document()"? I don't see it listed in the NEdit
documentation (http://www.nedit.org/help/actions.php#Action_Routines).
Perhaps what you want is 'focus_pane("next")'?

Also, did you run 'xrdb -l ~/.Xdefaults" from the shell after
modifying your Xdefaults file? Changes to x-resources in the Xdefaults
file only actually start working when you re-read the file with the
xrdb utility.

Hope this helps,
-- 
Offer Kaye
-- 
NEdit Discuss mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/discuss
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.