Closed lammel-hub closed 6 months ago
I'm struggling to implement this selection into the existing "Windows key" button. As the button also needs to be a toggle button (either pressed or released). So I moved the conversion to the assisted side: when the wizard receives a "windows key" event and runs on a Mac, it maps it to the "cmd" event. Just have to document this behavior - together with the rest of the documentation, which I should still update :)
I must say that is a VERY clever workaround!
Perhaps Assisted should shift its icon to the CMD-logo if it is run on MacOS (but Assisted receive Winkey if run in Windows) so that you get the clever solution consistent at both ends?
OR
Simply call it "send [Special] key" (in analogy with [ctrl] key) and explain in the text that it sends win or cmd depending on Assisted's OS ?
Yes, but the Assistant can only display the correct icon of the button, if he "knows" which OS that is running on the Assisted. (which he currently does not). Another approach would be to use a generic "boss key" button icon.
I tried to combine them, but it doesn't look too nice/recognizable, especially when scaled down to 24x24 pixel:
I like the generic boss key you suggest, but perhaps it could be an animated button that switches between the two symbols?
Note: in the earlier comment, I meant that the Assistant would reflect its own OS in selecting icom for the boss key.
Got to check if swing somehow supports animated icons.
I found an inspiration for combiming the logos if animation does not work
I was not entirely satisfied with the chosen approach. So I inverted the the control - now the assistant receives the os type from the hello message and then switches between mac/windows button.
Impressive! You really know your stuff and work fast.
Thanks for the flowers - maybe I just prefer to implement stuff instead of documenting them ;)
Is your feature request related to a problem? Please describe. The function to "send [winkey]" is very useful when the assisted is a windows machine. In other cases the assisted might be a MacOS.
The winkey is not present on the Apple keyboard, while the [cmd]-key is not present on the Windows keyboard.
Describe the solution you'd like Context: Session Function: change toggle "send [winkey]" to a dropdown toggle with two options: "send [winkey]" and "send [cmd]"
This would enable assistant to send either of the two special keys to assisted, without adding clutter/more buttons to context. It would also prepare for potential future "send [...]" functions.
(reference: selecting type of underline and togling it on/off in LibreOffice Writer, or Dayon! function "Set up IP", but with a small dropdown arrow to allow for the toggle function if main button icon is pressed)
Describe alternatives you've considered add a separate toggle for function "send [cmd]", but this would add clutter to context
Additional context Simple mockup (not representative of final renedering)
"send [winkey]" mode:![image](https://github.com/RetGal/Dayon/assets/145585121/a63d4751-8c89-497a-b42a-9637bcf7af70)
"send [cmd]" mode:![image](https://github.com/RetGal/Dayon/assets/145585121/78d0e20a-8aaf-438e-a8ca-973f63d15c98)
LibreOffice Writer (dropdown-toggle: Underline):![image](https://github.com/RetGal/Dayon/assets/145585121/07b92091-b84c-4580-a7c6-7a7cffec1499)