helloSystem / ISO

helloSystem Live and installation ISO
https://github.com/helloSystem/
BSD 3-Clause "New" or "Revised" License
805 stars 59 forks source link

Make the Windows key a Command key #513

Closed louies0623 closed 10 months ago

louies0623 commented 10 months ago

Stz1FQ7

On the Apple keyboard, it is clear that the Windows key is used as the Command key. We think that if we want to correctly implement the "Ctrl to Command" function, there must be an input switch (pressing the Windows key becomes the ctrl key to implement Command, Also change the ctrl key to windows key.)

Here's a solution I could find https://unix.stackexchange.com/questions/9098/map-windows-key-on-keyboard-to-ctrl

probonopd commented 10 months ago

As you can see, the Command key is always the key next to the space bar. The Windows key is not the key next to the space bar.

So if anything we need to make the right-hand side Alt key on Windows keyboards also work as a Command key.

louies0623 commented 10 months ago

image It's not Alt, Alt doesn't need to move it, but the windows key and ctrl.

Now I hope you buy a USB magic keyboard and actually use it on the Hello system, so that you can understand what you really need to do.

probonopd commented 10 months ago

Now I hope you buy a USB magic keyboard

Now I am confused. You were talking about Windows keys. The Apple Magic Keyboard does not have a Windows key.

Maybe there is a misunderstanding.

The official keyboard for helloSystem is the Raspberry Pi Keyboard and Hub. It has the best experience, including language autodetection. But of course we also want Apple keyboards to behave like they do on macOS.

louies0623 commented 10 months ago

Maybe I didn't express myself very clearly, which is why I'm so confused today. This is an excerpt from https://edu.gcfglobal.org/en/osxbasics/using-a-windows-keyboard-with-a-mac/1/ , "Although Windows and Mac keyboards feature most of the same keys, there are a few that differ. When using a Windows keyboard on a Mac, the Windows key is used instead of the Command key, and the Alt key is used in place of the Option key. For example, the Undo shortcut would use Windows+Z instead of Command+Z. ”

And the Raspberry Pi Keyboard and Hub Its keyboard is also a PC layout, just replace the windows logo with Raspberry; as for the Apple keyboard above, you can imagine that its Apple icon is the Win key, but the function is exchanged with the Ctrl key, which is how MacOS works.

probonopd commented 10 months ago

When using a Windows keyboard on a Mac, the Windows key is used instead of the Command key, and the Alt key is used in place of the Option key. For example, the Undo shortcut would use Windows+Z instead of Command+Z. ”

When using a Windows keyboard on the Mac, then the Windows key becomes the command key, which is unlike a real Mac keyboard where the Command key is the key next to the spacebar. A Windows keyboard on the Mac does not feel native. The Command key is on the wrong physical key. We want the good behavior - where the Command key is the key next to the spacebar.

louies0623 commented 10 months ago

When using a Windows keyboard on the Mac, then the Windows key becomes the command key.

This paragraph is correct

probonopd commented 10 months ago

When using a Windows keyboard on the Mac, then the Windows key becomes the command key.

The intended behavior on helloSystem is different: That always the key next to the space bar becomes the command key. No matter what is printed on it.

louies0623 commented 10 months ago

So I would recommend you to buy a USB magic keyboard, and it will be beneficial to your system development.

louies0623 commented 10 months ago

I was wrong, this keyboard is right on the system, A1278 tested.

probonopd commented 10 months ago

I have plenty of Apple keyboards already ;-)