IPED icon indicating copy to clipboard operation
IPED copied to clipboard

Makes all keyboard shortcuts application global

Open lfcnassif opened this issue 2 years ago • 4 comments

Most of them, if not all, are specific to some panels. #1266 used a global approach that could be used everywhere.

lfcnassif avatar Aug 11 '22 00:08 lfcnassif

I am including CTRL+B (show bookmark manager dialog) in the "global" shortcut handling function in the same PR of #1866.

I think that the other existing "local" shortcuts (pre-defined or assigned to bookmarks) should work only if a certain component is focused (like the main items table or the gallery), like it is today. So I am not sure if we should move them too. Is there any other existing shortcut that could be "global"?

About the "assigned to bookmarks" shortcuts, some users asked me to make them work in "related items" tables (e.g. parent, subitems). This would make a bit more sense after #1866. So I will open a new issue after finishing #1866, so we can discuss if it is worth changing the current behavior.

wladimirleite avatar Sep 12 '23 15:09 wladimirleite

Hi @tc-wleite! I agree bookmark related shortcuts should work just if an item is selected in the focused component (the viewer sometimes takes the focus unintentionally, that may be a problem...). But does that avoid centralizing them in a central manager? I think that may make shortcut management easier and could allow checking for shortcut conflicts, warning the user if needed. Is it possible to detect the current focused component in the application? Or to track the focus history (maybe manually) to workaround the viewer borrowing focus? Edited: This would allow to know the last (or previous) focused component, which may be the main table, some related items table, etc.

lfcnassif avatar Sep 12 '23 17:09 lfcnassif

PS: I know focus control is very tricky...

lfcnassif avatar Sep 12 '23 17:09 lfcnassif

I see. So it is a bit more complicated than I anticipated. Anyway, for now I will keep the change I made to CTRL+B, which was straightforward and should be helpful in any scenario, and leave this issue open for now.

wladimirleite avatar Sep 12 '23 19:09 wladimirleite