Moonlight-the-Fried-Fish / moonlight-ios-NativeMultiTouchPassthrough

Forked from original moonlight-iOS with many deviations
GNU General Public License v3.0
393 stars 8 forks source link

Remap Feature of Modifier Keys for Magic Keyboard/Other Keyboard variations. #36

Open ataraxia-admail opened 2 days ago

ataraxia-admail commented 2 days ago

Is your feature request related to a problem? Please describe. There are 4 modifier keys in keyboard, the In Windows keyboard layout, it's the Control, Fn, Windows, Alt Key. The Ctrl Key is primary modifier image

In Macbook/MagicKeyboard, it's the Fn, Control, Option, Command key. The Command Key is primary modifier image

NOTE: There are also other variations of keyboards sold out there that have different layouts such as mine being Control, Fn, Option, Command Key. image

Shortcut looks like this the respective layouts In Windows, it's Ctrl + C, Ctrl + V to Copy and Paste In Apple, it's Cmd + C, Cmd + V to Copy and Paste

However, due to the unergonomic design of apple's keyboard, many of us tend to remap it to our preference, such as in this case i switched the command key with control key so that i can press Ctrl + C instead of awkwardly overlapping my thumb and index finger to make a CMD + C input. While others may have more complicated remaps with the original apple keyboard.

78A48792-05D9-47F6-8B59-0D9E9613E869

Due to this, when using Moonlight with this remapped settings, (assuming accessing Windows PC via iPad+Keyboard) we would have to do a CMD + C to achieve the Ctrl + C to copy in our Windows machine, this is extremely inconvenient, as most of users are already familiar with Windows's shortcuts and it also has a more ergonomic design. If we would like to use the Windows Shortcuts, we would have to reset our keyboard settings to default which while solves the problem but makes using the keyboard outside of moonlight so much harder and frustrating.

Describe the solution you'd like I would suggest for the implementation of a keyboard remap feature in moonlight similar to the above picture which is the iPad's in-built remap feature so we are able to use Windows Shortcuts with our Apple Shortcuts based on our preferences. Thank you for reading this and I wish that you would bring this feature to bring a better keyboard experience in this application.

TrueZhuangJia commented 1 day ago

might be a bit surprise to you but i don't even have a mac book or mac, not to mention magic keyboard. (using macOS virtual machine to develop this fork), so i really have no chance to understand your trouble.

most of my modifications are touch oriented, since this is the way I use my ipad mini

ataraxia-admail commented 1 day ago

To keep it simple, Just imagine you swap Alt and Ctrl for a day when using your PC. Alt + C to Copy, Alt + V to Paste, Alt + Z to undo. Considering Alt is right beside the spacebar, that is so awkward to use right?

However, would you consider on implementing this feature to allow key bind remaps on the modifier keys? It's really a headache to be forced to use 2 keyboard layouts at once as a both apple+windows keyboard user.