This might be a dead end but is there a good way to create obscure keyboard short-cuts (without a vk constant or ord).
So I think the only way to reliably detect for an obscure character like "[" is using keyboard_string/lastchar while a key is being pressed, since the key code changes depending on keyboard layout so using a number constant is unreliable?
Here's an example of an attempt at a layering short-cut like that in Adobe Illustrator.
However the above doesn't work because the holding of control (or shift) seems to interrupt the string/lastchar being updated some some other issue. Removing the check for control means it just works fine (when not holding control, that is)
So, is there a better way, or should I abandon the "control+" standard for all my other short-cuts to keep consistency?
So I think the only way to reliably detect for an obscure character like "[" is using keyboard_string/lastchar while a key is being pressed, since the key code changes depending on keyboard layout so using a number constant is unreliable?
Here's an example of an attempt at a layering short-cut like that in Adobe Illustrator.
Code:
//ordering
if (keyboard_check(vk_control))
{
if (keyboard_check_pressed(vk_anykey))
{
switch (keyboard_lastchar)
{
case "]":
dir = 1;
break;
case "[":
dir = -1;
break;
}
}
}
So, is there a better way, or should I abandon the "control+" standard for all my other short-cuts to keep consistency?