helloSystem / ISO

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

Remove the code for Ctrl key and Alt key to exchange configuration #345

Closed louies0623 closed 1 year ago

louies0623 commented 2 years ago

Is your feature request related to a problem? Please describe. When executing the hello system on a Macbook, when copying and pasting is used, its Option and Command are opposite and need to be exchanged.

I suspect that Apple.inc removed the PC keyboard code when developing the operating system, so that the Ctrl key and Alt key are exchanged when using Mac OS to plug in the PC external keyboard, but in fact, all keyboards in BSD are compatible. Whether it is an Apple Keybord or a PC keyboard.

There is another thing that I noticed after using the Mac keyboard. Whether it is using Ubuntu or fedora, the CapsLock of the Mac keyboard is delayed. I speculate that Apple has made a key delay on the hardware, instead of modifying the code to make CapsLock as previously thought. Key delay.

Describe alternatives you've considered Remove the code for Ctrl key and Alt key to exchange configuration.

probonopd commented 2 years ago

Related code:

https://github.com/helloSystem/ISO/blob/696e469adc00687cf85f3e690cc22debd4fc3acf/overlays/uzip/hello/files/usr/local/bin/start-hello#L119-L141

Can you find out what would need to be changed?

louies0623 commented 2 years ago

I'm not sure about this, but it depends on how you wanted to add the Ctrl key and the Alt key to swap configuration when you were developing the system. Just remove the code you wrote at that time.

louies0623 commented 2 years ago

By the way, can you develop an option function in the keyboard settings that is similar to that as long as you find words such as Ctrl or Alt on the menu, it will automatically be replaced with the Mac keyboard symbols?

probonopd commented 2 years ago

The intended behavior is that the Command key is the ley at the left to the space bar. On Mac and on PC keyboards. So that you can press Command-C and Command-V for Copy and Paste using the key left to the space bar. Does this work for you?

In addition, Ctrl and Alt might possibly also need to be exchanged. Would this help in your case?

louies0623 commented 1 year ago

Responded.