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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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 isselect and find next
command) so it would not select a word next to the cursor if no text is selected.Why not just disable it in the Shortcut Mapper?
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
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/