Page 1 of 1

Keyboard shift state and GUI buttons

Posted: 2019-01-06, 08:52 UTC
by browny
1. In MS DOS times some programs could change button texts in the bottom bar row (F3 - F8) when Alt, Ctrl or Shift button(s) were pressed. Norton Commander v3.0, for one.
Maybe that was already suggested, and considered unnecessary for experienced users.

2. Sometimes it might be convenient to do file operations with a mouse, and then keyboard state could be taken into account for GUI buttons.
For example, the standard horizontal bar has "Invert selection" button. It duplicates the function of a Grey* key. Shift+Grey* inverts selection with subdirectories, but Shift+click "Invert selection" now is still unmodified "Invert selection" action.
The bottom bar buttons that duplicate funcion keys, could be affected too.

Re: Keaboard shift state and GUI buttons

Posted: 2019-01-06, 15:03 UTC
by Hacker
browny,
Too many translations and users can remap hotkeys. Even now they are not accurate when users remap e.g. F6. The names of all TC internal commands would need to be translated.

Roman

Re: Keaboard shift state and GUI buttons

Posted: 2019-01-06, 17:53 UTC
by Horst.Epp
There is a too which does what you want but its rather complicated to setup.
ButtonBar Extended https://www.ghisler.ch/board/viewtopic.php?t=20274

Re: Keaboard shift state and GUI buttons

Posted: 2019-03-22, 12:20 UTC
by browny
Hacker wrote: 2019-01-06, 15:03 UTC Even now they are not accurate when users remap e.g. F6.
Then the feature would not spoil the already existing mess. :)
Horst.Epp wrote: 2019-01-06, 17:53 UTC There is a too which does what you want but its rather complicated to setup.
Thanks, but the idea is to have this as a built-in feature.

Re: Keyboard shift state and GUI buttons

Posted: 2019-03-23, 01:37 UTC
by petermad
2browny
There are come internal command that are aware of some modifier keys when clicking on Button bar, Menu item or Function key buttons:
cm_List is aware of Shift or Alt pressed
cm_Edit is aware of Shift pressed
cm_Copy is aware of Shift or Ctrl pressed
cm_RenMov is aware of Shift pressed
cm_Delete is aware of Shift pressed
cm_PackFiles is aware of Ctrl pressed
SELECTFILES is aware of Shift pressed

There might be others...?

I support that at least the text on the Function key buttons changes according to the pressed modifier key, when the botton is hovered.

Re: Keyboard shift state and GUI buttons

Posted: 2019-03-24, 11:50 UTC
by browny
petermad wrote: 2019-03-23, 01:37 UTC I support that at least the text on the Function key buttons changes according to the pressed modifier key, when the botton is hovered.
Button text acts as a hint; therefore it should not be restricted to mouse hovering only.

Re: Keyboard shift state and GUI buttons

Posted: 2019-03-24, 14:38 UTC
by petermad
2browny
Button text acts as a hint; therefore it should not be restricted to mouse hovering only.
But you may press Shift, Ctrl or Alt for many other reasons than wanting to click on one of the 7 Function key buttons, so there would be a lot of unnecessary flickering of the button text, if just pressing one of those modifier keys should cause the button text to change.

I know that Norton Commander or Volkov Commander acted in the way you describe - but you almost never used the mouse in those file managers (at least I didn't), so hovering the button wasn't really an option back then.

Re: Keyboard shift state and GUI buttons

Posted: 2019-03-25, 10:10 UTC
by browny
petermad wrote: 2019-03-24, 14:38 UTC I know that Norton Commander or Volkov Commander acted in the way you describe - but you almost never used the mouse in those file managers (at least I didn't), so hovering the button wasn't really an option back then.
So to get a hint you first press a key, then move mouse to hover over the button to read the function, then to another button - or try another key combination, if that was not the function you needed. Where is convenience and usability in that?

As for mentioned "flickering", there hardly would be any with today's processors and graphics adapters - unless someone would tap modifier keys many times a second.