From: Thomas S. <tho...@be...> - 2002-09-10 22:54:22
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I did a quick hack this afternoon after many days of frustration with not being able to map events to the Meta key (aka, the Apple key, the Command-key, the Flower-key, the Windows-key, whatever you call it). With this patch, a MacOS X user can generate a keys file, search for Ctrl and replace with Meta, and it will feel like the rest of the MacOS X apps. I've only tested this under MacOS X 10.2.1 6D44, and I wouldn't be surprised if there was an issue. Hopefully I have not duplicated someone elses work. To download the patch, see the bug report I made at: http://sourceforge.net/tracker/ index.php?func=detail&aid=607547&group_id=55057&atid=475785 Note: I am not a Java programmer. This is the first time I've even looked inside the source to a java program. This is a really basic patch. Thomas Stromberg <th...@st...> Senior UNIX Administrator, Bell & Howell work: 919-767-4454 - cell/home/sms: 919-272-3094 "downtime is for amateurs". -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (Darwin) iD8DBQE9fngYdg3xIUb4rV4RAsOdAKCe3OpuHXroprM28s0o4MEZqj4aZQCgxCWv fyW2lnQsyjwaW0nawldvDok= =RTcR -----END PGP SIGNATURE----- |
From: Peter G. <pe...@ar...> - 2002-09-11 01:26:01
|
> I did a quick hack this afternoon after many days of frustration with > not being able to map events to the Meta key (aka, the Apple key, the > Command-key, the Flower-key, the Windows-key, whatever you call it). > > With this patch, a MacOS X user can generate a keys file, search for > Ctrl and replace with Meta, and it will feel like the rest of the MacOS > X apps. I've only tested this under MacOS X 10.2.1 6D44, and I wouldn't > be surprised if there was an issue. Hopefully I have not duplicated > someone elses work. This patch is applied in tonight's 0.16.4+ development snapshot: http://armedbear.org/j.zip (source and documentation) http://armedbear.org/j-jar.zip (just j.jar) It seems to work fine on Linux. The easiest way to play around with this is to put an ad hoc mapping or two in ~/.j/init.bsh, e.g.: globalMapKey("Meta I", "inbox"); mapKeyForMode("Meta E", "p4edit", "Java"); You'll need to restart j to pick up your changes after editing init.bsh (evalBuffer might work too, but restarting j is more reliable if you have anything else in there). -Peter |