helloSystem / ISO

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

Command not on command key on Mac #415

Closed probonopd closed 1 year ago

probonopd commented 1 year ago

The "command" and "option" of hello os are the opposite of the mac keyboard arrangement.

Video: https://github.com/helloSystem/hello/discussions/399#discussioncomment-4119535

The video is a virtual machine because it is too difficult to boot on a physical machine, but it is the same on a physical machine.

To be retested.

probonopd commented 1 year ago

Maybe need to delete/edit /usr/local/etc/xdg/Xmodmap?

louies0623 commented 1 year ago

You delete that file first, use it as iso and let me test whether it works.

probonopd commented 1 year ago

I don't know what you mean by this.

louies0623 commented 1 year ago

Build the version iso file that removes "/usr/local/etc/xdg/Xmodmap", let me test whether the keyboard keys of mac are back to normal.

probonopd commented 1 year ago

To test such things, you can use https://hellosystem.github.io/docs/developer/monkey-patch.html. No need to make special ISOs.

louies0623 commented 1 year ago

Update: I was wrong, Sorry The PC keyboard is arranged correctly. Switching to the Mac control key arrangement is problematic. That problem is "Alt as ⌘ button" ⌘ is connected to the Mac Option key.

louies0623 commented 1 year ago

My previous video didn't express it clearly, but this video is what I want to express. https://youtube.com/shorts/8T20wc7BoAY?feature=share

probonopd commented 1 year ago

Seems like the issue comes from using a virtual machine?

Is this also an issue on a physical machine?

louies0623 commented 1 year ago

It is also wrong on the physical machine. I was lucky enough to let my Macbook execute hello OS but the key configuration of the keyboard is also wrong. Before you can solve the Mac keyboard problem, temporarily disable the swap button, because if the configuration is successful, there is already an easy option in the Ubuntu Settings Center to switch.

louies0623 commented 1 year ago

Just think of it, when Apple built the Mac system, it inherited the main Ctrl key [this is the PC keyboard] function (such as the shortcut key on the cut or copy) to the win key (⌘) (but the Ctrl key [this is the Mac keyboard] is still the Ctrl key, but it has become a non-primary shortcut like the Alt of the PC). grgrge_工作區域 1

Apple keybord in windows https://support.apple.com/en-us/HT202676

probonopd commented 1 year ago

All I can say at this point is that using an Apple keyboard (on a PC or on a Mac running helloSystem) will result in (left) Command to work like it is expected to work (=Command is the key to the left of the space bar).

Hence, closing, because at least on the systems I tested, (left) Command is where Command is supposed to be.

Other keys may be messed up but getting Command to work properly was my #1 priority. If anyone can contribute working tested code to improve things further, I'm happy to test and consider it.

louies0623 commented 1 year ago

Wait @probonopd , it's not supposed to be Ctrl and Alt swapping, no wonder on my macbook Didn't fix it as it was just a keyboard arrangement swap.

It should be "use Ctrl or Win key(Command) as the control key", because the PC keyboard is correct in MacOS, it's just a matter of arrangement (Win key and Alt arrangement position).

Alt you should ignore it, because it is normal on PC or Mac keyboard in MacOS or Ubuntu.