#52 Script hotkeys do not work when NppExec has focus

open
DV
NppExec (13)
5
2008-07-09
2008-07-09
No

First of all, I can't thank you enough for adding hotkey mapping to NppExec scripts! Great work. Although F6 can bring up the script dialog, the mapped hotkeys do not get recognized when the NppExec console has focus.

It's been a bit since I did MFC programming, but I believe in your event handling loop that you just need to return TRUE or FALSE (can't remember which) to have the key press event ripple back up to the parent form.

Discussion

  • DV

    DV - 2008-07-10

    Logged In: YES
    user_id=1468738
    Originator: NO

    How can NppExec understand whether the processed key combination is Notepad++'s accelerator? It has no access to Notepad++'s accelerator table.
    The answer is required because NppExec's Console window is also an input window which processes a lot of key combinations by itself, including default processing of all typed characters, Ctrl+C, Ctrl+V and so on, and special processing for Ctrl+F, Tab and much more. So I see no possibility to implement ALL conditions which must be processed by NppExec itself, and pass only non-processed key combinations to Notepad++.

     
  • DV

    DV - 2008-07-10

    Logged In: YES
    user_id=1468738
    Originator: NO

    How can NppExec understand whether the processed key combination is Notepad++'s accelerator? It has no access to Notepad++'s accelerator table.
    The answer is required because NppExec's Console window is also an input window which processes a lot of key combinations by itself, including default processing of all typed characters, Ctrl+C, Ctrl+V and so on, and special processing for Ctrl+F, Tab and much more. So I see no possibility to implement ALL conditions which must be processed by NppExec itself, and pass only non-processed key combinations to Notepad++.

     
  • DV

    DV - 2008-07-10

    Logged In: YES
    user_id=1468738
    Originator: NO

    How can NppExec understand whether the processed key combination is Notepad++'s accelerator? It has no access to Notepad++'s accelerator table.
    The answer is required because NppExec's Console window is also an input window which processes a lot of key combinations by itself, including default processing of all typed characters, Ctrl+C, Ctrl+V and so on, and special processing for Ctrl+F, Tab and much more. So I see no possibility to implement ALL conditions which must be processed by NppExec itself, and pass only non-processed key combinations to Notepad++.

     
  • DV

    DV - 2008-07-10

    Logged In: YES
    user_id=1468738
    Originator: NO

    What a buggy bug-tracker! I did not post triply, believe me.

     
  • Greg Williams

    Greg Williams - 2008-07-10

    Logged In: YES
    user_id=1970571
    Originator: YES

    If there is no way of knowing that a given key combination is destined for NppExec (or not), than yeah, this doesn't seem like an easily resolvable issue. It's not worth a ton of work to get that feature. Bummer! Thanks for the response.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks