Active String: Add control modifier
My preferred settings are:
● Double click to select a string.
● Ctrl + double click to open a URI
Issue:
● The ctrl + double click option is not available under [Tools] → [Customise] → [Active String]
Suggestion:
Add a Ctrl + double click option.
Yeah, It's an good idea to add extras key for mouse click. This will give more possibilities.
Is it also possible to consider Shift key?
It might take some time, but I will think about this in the future. Meanwhile, you could write a macro to run on this event, and add a condition by the pressed key.
Ok I'll try to write a Macro sometime this week and will post it here.
Many thanks for considering!
Regarding the macro: I`m currently stuck with the condition on the pressed shift / alt / ctrl key.
See: https://emeditor.wpengine.com/forums/topic/modifier-key-ctrl-alt-shift-is-was-pressed/
Example code (formatted version):
#title = "URL open or select"
#icon = "C:\\Windows\\System32\\shell32.dll",135
#tooltip = "URL open or select"
#language = "V8"
#async = "off"
// Self test: https://emeditor.wpengine.com/
// Issue with control + single click: https://emeditor.wpengine.com/forums/topic/control-click-triggers-double-click/
// PC, Version 1.0
"use strict";
bCtrlDown = shell.GetKeyState( 0x11 ) < 0;
if( bCtrlDown ) {
// OutputBar.writeln( '"'.concat(document.selection.Text, '"') );
shell.Run( "c:\\Program Files\\Vivaldi\\Application\\vivaldi.exe", 1, false, '"'.concat(document.selection.Text, '"') );
document.selection.Collapse();
}
6 posts in this topic