Synergy

Issue Tracker (powered by SPIT)

Bug #3010 - Modifier keys not working on Mac OS X server

Status:
Fixed
Priority:
Normal
Assignee:
None
Category:
None
Target:
1.4.8
Found:
1.4.5
Created by:
Created on:
1 Nov 2011 16:38
Updated by:
None
Updated on:
14 Mar 2012 22:23
Platform:
Mac OS X
Google ID:
None
Redmine ID:
3058

  • Related to: Bug #56 - Mac OS X server not sending keystrokes to client
  • Related to: Bug #3331 - Key modifiers not working in Eve Online on OS X

Steps to reproduce:

  1. Start the server on the Mac OS X Lion, and the client on the Linux machine
  2. Move your cursor to the client screen, and try to use any modifier key (Shift, Ctrl, Alt, ...)
  3. All keys will work except the modifiers, if you use one of them, it'll act as you continuously pressing the alt key.

Expected: All modifier keys working properly for each function;
Actual: All modifier keys not working. Alt, Ctrl and Super working as Alt key. Shift not working.

Versions (Synergy, OS):

Server: synergy 1.4.5 beta (Mac OS X Lion)
Client 1: synergy 1.4.5 beta (Fedora 15 Linux)



#1

14 Nov 2011 20:43: Spickup None wrote a comment.

Exactly the same here with:
Server: synergy 1.4.5 beta (Mac OS X Lion, keyboard language = spanish)
Client 1: synergy 1.4.5 beta (Microsoft Windows XP SP3, keyboard language = spanish)


#2

22 Nov 2011 03:53: Kai Yuan Cheng wrote a comment.

Exactly the same here with:
Server: synergy 1.4.6 r1155 on Mac OS X Lion 10.7.2
Client 1: synergy 1.4.6 r1155 on Microsoft Windows XP SP3


#3

23 Nov 2011 12:15: Jimmie E wrote a comment.

Exaxtly the same here with:
Server synergy 1.4.5 beta for 10.6 (Mac OS X 10.6.7 Snow Leopard, keyboard language = swedish)
Client: synergy 1.4.5 beta 32-bit (Windows 7, keyboard language = swedish)

It resets when moving mouse cursor between screens.


#4

23 Nov 2011 13:06: Kai Yuan Cheng wrote a comment.

Bill Cheng wrote:

Exactly the same here with:
Server: synergy 1.4.6 r1155 on Mac OS X Lion 10.7.2
Client 1: synergy 1.4.6 r1155 on Microsoft Windows XP SP3

both keyboard language = english


#5

24 Nov 2011 02:50: Takashi Sasaki wrote a comment.

I also have a similar defect.
Server synergy 1.4.5 beta (Mac OS X Lion 10.7.2, keyboard language = Japanese)
Client: synergy 1.4.5 beta 64-bit (Windows 7,64bit, keyboard language = Japanese)
i hope it will be fixed.


#6

27 Nov 2011 01:42: Joseph Ziegler wrote a comment.

same issue. modifier keys cause the keyboard to stop responding. i have to restart the server.
1.4.5 both client and server
server mac os x lion


29 Nov 2011 13:12: Nick Bolton changed Tracker.

Support Bug


29 Nov 2011 13:12: Nick Bolton changed Found in ver.

1.4.5


29 Nov 2011 13:12: Nick Bolton changed Platform.

Mac OS X


29 Nov 2011 13:12: Nick Bolton changed Status.

New Accepted


#7

1 Dec 2011 01:39: Jaehyun Han wrote a comment.

Same issue.
Server : Mac OS X lion 10.7.2
Client : Ubuntu 11.10 32bit
Keyboard language is Korean
Both server and client use synergy 1.4.5 beta
When I use Mac as server, then all modifier keys not work and acts like sticked 'Alt' key


#8

16 Dec 2011 04:36: f yang wrote a comment.

Same problem here. Windows Xp client with 1.4.5 or 1.4.2, Mac OS X 10.7.2 host with 1.3.8 or 1.4.5.

Pressing Shift, Ctrl, Alt, Super all result in alt being held. I need to restart host server for any other keys to function normally.

Note: turn off Shift, Alt, Meta modifier keys in screen settings page will make Shift key work normally, but other modifier keys (e.g. Ctrl, Super) still be non-functional.


#9

20 Dec 2011 17:09: David Otto wrote a comment.

Same problem here.
Server: Mac OS X 10.6.8 (Snow Leopard) synergys 1.4.5
Client: Arch Linux synergyc 1.4.5

Seems like the mask returned by @CGEventGetFlags()@ does not fit to the enums in @COSXKeyState::mapModifiersFromOSX@. (See log)

For me the attached patch solves the issue, but it revokes some changes from revision 237. Anyway for me its not visible why this was changed.

Perhaps, somebody with Mac OS X Leopard or even Tiger should check for regression.


20 Dec 2011 17:09: David Otto uploaded a file.

synergy-stickykeys.log - David Otto 20 Dec 2011 17:09


20 Dec 2011 17:09: David Otto uploaded a file.

stickykeys.patch - David Otto 20 Dec 2011 17:09


#10

23 Dec 2011 00:07: Stefan Jaeger wrote a comment.

I tried David Ottos Patch on 1.45 and OSX Lion as Server. Now my Win 7 clients seems to work correct with the modifier keys. Great patch, David!


#11

27 Dec 2011 07:18: Kai Yuan Cheng wrote a comment.

I tried David Otto patch on 1.46 and OSX 10.7.2 as server.

That work correct! Thank David.


#12

27 Dec 2011 08:33: Kai Yuan Cheng wrote a comment.

Bill Cheng wrote:

I tried David Otto patch on 1.46 and OSX 10.7.2 as server.

That work correct! Thank David.

Test on r1155


#13

11 Jan 2012 06:26: kieppie kieppie wrote a comment.

Experiencing a similar issue - upgraded client & server to current 1.4.5 beta (only mouse pointer works on 1.3.8 stable)

Server - Mac OS X 10.6.8 (10K549)
Client - Ubuntu 11.10 64-bit - 3.0.0-14-generic


#14

12 Jan 2012 04:10: Rasha Harris wrote a comment.

I downloaded David's patch but there is no such directory as src/lib/platform/ that even exists on my Mac. Where do I need to put this?

Running OSX 10.7.2


#15

12 Jan 2012 04:10: Rasha Harris wrote a comment.

I downloaded David's patch but there is no such directory as src/lib/platform/ that even exists on my Mac. Where do I need to put this?

Running OSX 10.7.2


#16

14 Jan 2012 09:21: David Otto wrote a comment.

Hi Rasha,
you need to put it in the top folder of the source package. For example download the 1.4.5 beta source code, unpack it and put the patch in this directory.
Then run


patch -p0 < stickykeys.patch

in this directory. After this you need to compile it. If you don't know how to do this check [[Compiling]].


#17

17 Jan 2012 16:36: Jose Cardozo wrote a comment.

On the 1.4.5 your path works perfectly.
Thanks David.

David Otto wrote:

Hi Rasha,
you need to put it in the top folder of the source package. For example download the 1.4.5 beta source code, unpack it and put the patch in this directory.
Then run
[...]
in this directory. After this you need to compile it. If you don't know how to do this check [[Compiling]].


#18

6 Feb 2012 03:10: c w wrote a comment.

same on 1.4.7


#19

6 Feb 2012 03:15: c w wrote a comment.

regarding to David s patch, can anyone give a more details instruction?
I am more of a windows person , new to mac

would be a lot appreciated


#20

7 Feb 2012 04:14: c w wrote a comment.

Hi

i have been using the Sharemoue which is another freeware for home user,
it's surprisingly stable, and the 2-way feature is absolutely fantastic.
and many great features such as auto config, etc
i think this could be a reference to Synergy.

however, i think the mouse cursor is more smooth in synergy than Sharemouse, and the Mouse key1 key2 only work in synergy when goes into client.


7 Feb 2012 16:48: Nick Bolton changed Status.

Accepted GotPatch


7 Feb 2012 16:48: Nick Bolton changed Target.

1.4.8


#21

14 Mar 2012 18:49: Nick Bolton wrote a comment.

Fixed in r1272. Thanks to David Otto for the patch.


14 Mar 2012 18:49: Nick Bolton changed Status.

GotPatch Fixed