pediapolt.blogg.se

Swap command and control mac
Swap command and control mac








  1. #Swap command and control mac how to#
  2. #Swap command and control mac Patch#
  3. #Swap command and control mac code#
  4. #Swap command and control mac windows#

ntrol_modifier = self.modifier_keys.get("Control_L") or self.modifier_keys.get("Control_R") + ta_modifier = self.modifier_keys.get("Super_L") or self.modifier_keys.get("Super_R") ta_modifier = self.modifier_keys.get("Meta_L") or self.modifier_keys.get("Meta_R") +++ b/trunk/src/xpra/platform/darwin/keyboard.py (working -116,7 +116,7 set_modifier_mappings(self, mappings):

swap command and control mac

a/trunk/src/xpra/platform/darwin/keyboard.py (revision 16562) Index: src/xpra/platform/darwin/keyboard.pyĭiff -git a/trunk/src/xpra/platform/darwin/keyboard.py b/trunk/src/xpra/platform/darwin/keyboard.py a/trunk/src/xpra/gtk_common/gtk_util.py (revision 16562) a/trunk/src/xpra/client/gtk_base/gtk_client_window_base.py (revision 16562)ĭiff -git a/trunk/src/xpra/gtk_common/gtk_util.py b/trunk/src/xpra/gtk_common/gtk_util.py Index: src/xpra/client/gtk_base/gtk_client_window_base.py

#Swap command and control mac how to#

If you have pointers about how to do this properly then I will try to do that.

#Swap command and control mac code#

I managed to bodge and hack enough code to get the correct result. I don't think I was using -swap-keys when I ran into the not-a-modifier issue (because #1608 prevented me passing that option).

#Swap command and control mac Patch#

If we do need the GTK patch (looks easy to apply to GTK2), I would need a simple test case to verify what it does or doesn't do. Maybe we should try to get the keyboard to work reliably from macos to a test application first (xev, whatever), then add virtualbox into the mix? I've used xpra with virtualbox before, and I had found that virtualbox was messing up some key events. Maybe we should be swapping those (similar to your changes) when swap-keys is enabled, that looks like a bug. It swaps the modifiers (control vs command) but not the actual key presses for those keys. Sun, 07:00:14 GMT - Antoine Martin: owner changedĬhanged from Antoine Martin to Ray DonnellyĪre you using -swap-keys=no as per #1608?Ĭould it just be that the swap-keys code is incomplete? I know this isn't related to this ticket, but I was wondering how well Xpra is working on GTK+3 and Python 3? +++ b/trunk/src/xpra/client/gtk_base/gtk_client_window_base.py (working -1358,6 +1358,10 = event.hardware_keycode

swap command and control mac

I'll save that for another day, hopefully after Xpra is added to the Anaconda Distribution (and MSYS2). Small update, the right Command button change is ineffectual and shouldn't have been included in my patch. I'm so close to having a great OSX 10.9 development setup, just one pesky little modifier key away! Is this likely something that can be fixed in the Python code or will it involve changes at the GTK+ level? If anyone wants to see how OSX interprets the key presses this post might help: The lack of Command-as-modifier *may* be related to Key_event.modifiers = self._client.mask_to_names(event.state) Keyname = KEY_TRANSLATIONS.get((keyname, keyval, keycode), keyname) +++ b/trunk/src/xpra/client/gtk_base/gtk_client_window_base.py (working -1358,6 +1358,13 = event.hardware_keycode a/trunk/src/xpra/client/gtk_base/gtk_client_window_base.py (revision 16558) My hack patch is simple enough (but clearly a hack!):ĭiff -git a/trunk/src/xpra/client/gtk_base/gtk_client_window_base.py b/trunk/src/xpra/client/gtk_base/gtk_client_window_base.py Advice on how to debug this would be appreciated. I managed to hack the code so that the Command and Control keys are 'correctly' detected on OSX 10.9, however the Command key does not work as a modifier so I cannot press it in combination with any other key. My target machine is Fedora 26 Linux (on Apple hardware for those who care about that licensing detail) running VirtualBox running OSX 10.9 so my goal is to have the keyboard work as if I were working directly on OSX 10.9 on the MBP. If this article didn't help, you can talk to someone on our support team (unless we sent you here, in which case please reply via the ticket you already have open).My host machine that I'm typing on is an MBP 2015 running macOS Sierra.

  • Click Apply to save your new configuration.
  • swap command and control mac

    Then click OK again to close the Server Configuration window.Click OK to close the Screen Settings window.

    swap command and control mac

  • You change the keys based on what you want which key to do.
  • On the right side you will see a vertical list of all the modifier keys.
  • Double click on the machine whose keys you would like to edit (e.g.
  • You should now see all the machines that are configured on your network.
  • Click the "Configure Server." button on the main display.
  • Follow the steps below to swap your modifier keys.

    #Swap command and control mac windows#

    For example, when sharing a Windows keyboard with a Mac, using the Command-C can be tricky because the Windows key is in a different place than the Command key on a Mac. You might want to swap your modifier keys, based on what seems more convenient or comfortable to you.










    Swap command and control mac