#75 Some shortctus don't work anymore

closed-fixed
nobody
None
7
2005-02-25
2005-02-23
No

For what I saw.
Unit 3.10.8, all my Shortcuts work.
Now following are not working anymore:
I have a plugin (3 functions), which is assigned to:
numpad-2, numpad-5
and numpad-8.
It performs the plugin, but it adds the according chars
afterward into the document (2,5 or 8).

Discussion

  • Logged In: YES
    user_id=772872

    Browsing through the source, I saw, that a plugin function
    should return some value (in my case, nothing returned =>
    None);
    if not, it is processed further and in
    Runshortcuts in drshortcuts.py, it encounters a event.Skip(),
    which inserts the keystroke into the document.

    Maybe this could be added to the plugins doc.

    I think, this is resolved, (but I leave it open; i think,
    only the admin
    should close bugs (?))

     
    • priority: 5 --> 7
     
  • Logged In: YES
    user_id=796750

    You can certianly close your own bugs!
    However keep this open, I will look into it, as I think I
    *should* handle plugins not returning in event functions.

     
  • Logged In: YES
    user_id=796750

    Drpy again checks for a None return value from a plugin
    function in shortcuts, and stops processing if it is found.

     
    • status: open --> closed-fixed