[bug] Shortcut keys not working properly
-
@d-healey Try resetting the workspace. I think I've encoded a few IDs into the editorData.json that need to be there in order for the shortcuts to restore properly (just hit that same issue here).
-
@Christoph-Hart I'll give it a try
-
That didn't work unfortunately. I tried completely removing my hise config files folder too but no luck.
-
@d-healey Maybe it's our old friend with the
d
andD
mixup again. Can you check if you can reassign F2 / F3 keys? -
@Christoph-Hart Yeah it works with F keys :)
-
Bumpy bumpy
-
Bump again @Christoph-Hart Can you point me to where I need to be to fix this?
-
While you're fixing annoying bugs, this one annoys me :)
-
-
@Christoph-Hart Any chance we can get some shortcuts working again, as well as the search function?
Really having a hard time without the search. -
@Dan-Korneff Search is working here. What is not working for you?
-
@d-healey I always get "0 occurrences found" when I use the search function. It works properly in Linux, but not Win or Mac here.
-
@Dan-Korneff What if you change the ignore case option?
-
@d-healey Changing any of the options shows the same result
-
@d-healey It looks like it works if I manually type in the search term, but highlighting text and selecting "Find All Occurrences" doesn't
-
@Dan-Korneff Yes it behaves the same for me
-
@Dan-Korneff same here too
-
Ah yes, that's right, I broke this when I rewrote the search box logic.
BTW, you can use special search modes for
- namespaces (
n
) - functions (
fn
) - variables (reg, const and var) (
v
) - symbols (namespaces, functions and variables) (
s
) - files (
f
)
Just type the letters above, then a space and the search term, so if you're looking for a symbol named
mySymbol
, type ins mySymbol
If you're looking for a file called
MyFile.js
, type inf MyFi...
If you use the symbol / function / variables search mode it will also display a preview of the object when you select a line (this only works in symbol mode :
- namespaces (
-
@Christoph-Hart Excellent, thank you, this looks very useful! Did you fix the shortcut key issue too?
-
@d-healey I think the issue is in this line:
https://github.com/christophhart/HISE/blob/fcfdcda74348bf4723479ea92e5ac497dd60f21a/hi_tools/hi_tools/MiscToolClasses.h#L584
It checks if the current key press is in the list of assigned key presses, however something on Linux messes with the default comparison operator so you might have to compare them manually (I don't have access to a Linux system at the moment so you need to get your hands dirty yourself). So instead of this line, add something like
for(auto ak: t->keyMap.getKeyPressesAssignedToCommand(idx)) { if(ak.mods == k.mods && ak.getKeyCode() == k.getKeyCode()) { return true; } }
(the condition is totally bogus and won't compile), but you might try different things until you find something that works reliably :)