[Eric] Return problem back again

David Arnold dwarnold45 at suddenlink.net
Sun Feb 7 22:30:07 GMT 2010


Larry,

I've never done this before, so here is my first attempt:

david-arnolds-macbook-pro-2:Desktop darnold$ sudo patch /Library/Frameworks/Python.framework/Versions/6.0.0/lib/python2.6/site-packages/eric4/Preferences/Shortcuts.py Shortcuts.py.diff 
Password:
patching file /Library/Frameworks/Python.framework/Versions/6.0.0/lib/python2.6/site-packages/eric4/Preferences/Shortcuts.py
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file /Library/Frameworks/Python.framework/Versions/6.0.0/lib/python2.6/site-packages/eric4/Preferences/Shortcuts.py.rej

Should I have answered [y] to both those prompts?

D.

On Feb 7, 2010, at 1:42 PM, Larry Shaffer wrote:

> David,
> 
> It looks like the patch for this did not make it into eric 4.4.1. Attached
> is the patch you can apply with:
> 
> patch '/path/to/python/site-packages/eric4/Preferences/Shortcuts.py'
> '/path/to/Shortcuts.py.diff'
> 
> Read 'man patch' in Terminal for help, if needed. This should fix the
> problem.
> 
> After patching, and before launching eric...
> 
> Open ~/.config/Eric4/eric4.ini in BBEdit or TextWrangler and go to the
> [Shortcuts] section and look for and change to:
> 
> Edit\vm_edit_insert_line\Accel=Return
> Edit\vm_edit_insert_line\AltAccel=Enter
> Edit\vm_edit_insert_line_below\Accel=Shift+Return
> Edit\vm_edit_insert_line_below\AltAccel=Shift+Enter
> 
> Or, better yet, simply delete the [Shortcuts] section of the eric4.ini and
> save, then launch eric.
> 
> If you are running an unpatched version of eric, the saved shortcuts will =
> hex representations of the keys, instead of their words (at least, they will
> on a Mac).
> 
> Let me know if this works.
> 
> -- 
> Larry
> 
> 
> 
>> From: David Arnold <dwarnold45 at suddenlink.net>
>> Date: Sun, 7 Feb 2010 13:08:24 -0800
>> To: detlev <detlev at die-offenbachs.de>
>> Cc: "eric at riverbankcomputing.com" <eric at riverbankcomputing.com>
>> Subject: Re: [Eric] Return problem back again
>> 
>> Detlev,
>> 
>> I've tried to correct the problem. Just now, checking again, I select
>> Settings->Keyboard Shortcuts ..., then do a search in the Filter box with the
>> word "Return" and Shortcut or Alternative checked. Here is what it returns:
>> 
>> Edit
>> Insert new line       Return    Return
>> Insert new line below current line   Shift +Return   Shift+Return
>> 
>> There are no other occurrences of the Return key. Yet when I press the Return
>> key, I get:
>> 
>> Warning:
>> 
>> QAction::eventFilter: Ambiguous shortcut overload: ?
>> 
>> In what file are the Keyboard Shortcuts saved? I looked in ~/.eric4 but could
>> not find a .e4k file in there.
>> 
>> David
>> 
>> On Feb 7, 2010, at 2:32 AM, detlev wrote:  
>> 
>>> On Sonntag, 7. Februar 2010, David Arnold wrote:
>>>> OK,
>>>> 
>>>> I got rid of my Return key problem by importing default.e4k.
>>>> 
>>>> But all of a sudden it has returned. I have not done anything to keyboard
>>>> shortcuts, but every time I hit the return key (macbook pro, snow
>>>> leopard), I get a popup with the following message.
>>>> 
>>>> Warning:
>>>> 
>>>> QAction::eventFilter: Ambiguous shortcut overload: ?
>>>> 
>>>> 
>>>> What is going on?
>>> 
>>> That means, that the same shortcut is bound to two actions. You should
>>> correct 
>>> this.
>>> 
>>> Detlev
>>> -- 
>>> Detlev Offenbach
>>> detlev at die-offenbachs.de
>>> _______________________________________________
>>> Eric mailing list
>>> Eric at riverbankcomputing.com
>>> http://www.riverbankcomputing.com/mailman/listinfo/eric
>> 
>> _______________________________________________
>> Eric mailing list
>> Eric at riverbankcomputing.com
>> http://www.riverbankcomputing.com/mailman/listinfo/eric
>> 
> 
> <Shortcuts.py.diff>



More information about the Eric mailing list