Menu

Intercept command hotkey?

Help
V@no
2021-10-02
2021-10-05
  • V@no

    V@no - 2021-10-02

    Is there a way intercept and cancel execution of a command when a hotkey is pressed? Specifically I'm trying to intercept when CTRL+F3 is pressed (which is select and find next command) so it would not select a word next to the cursor if no text is selected.

     
  • Sasumner

    Sasumner - 2021-10-04

    Why not just disable it in the Shortcut Mapper?

     
  • V@no

    V@no - 2021-10-04

    Because I want it's functionality when text is selected and don't want it, when nothing is selected. Basically I'd like to combine F3 and CTRL+F3 into one
    For now I'm satisfied with this method, but still would like to know if there is a way capture commands within the script.

     

    Last edit: V@no 2021-10-04
  • Sasumner

    Sasumner - 2021-10-05

    In general there is not an absolute way to intercept command invocation via their keyboard shortcuts.
    However, this posting discusses ways of attempting it:
    https://community.notepad-plus-plus.org/topic/21158/way-to-disallow-copying-text/

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.