Built on Leopard, running for a couple of days without problems. Sorry if I missed anything, this is the first thing I've done on MacOSX.
--- prefpane/DoubleCommandPrefPane.xcodeproj/project.pbxproj (revision 214) +++ prefpane/DoubleCommandPrefPane.xcodeproj/project.pbxproj (working copy) @@ -172,9 +172,11 @@ 089C1669FE841209C02AAC07 /* Project object */ = { isa = PBXProject; buildConfigurationList = 00F60E45094F764D00C5D712 /* Build configuration list for PBXProject "DoubleCommandPrefPane" */; + compatibilityVersion = "Xcode 2.4"; hasScannedForEncodings = 1; mainGroup = 089C166AFE841209C02AAC07 /* DCP_prefPane */; projectDirPath = ""; + projectRoot = ""; targets = ( 8D5B49AC048680CD000E48DA /* DoubleCommand Prefences */, ); Index: prefpane/English.lproj/MainMenu.nib/info.nib =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: prefpane/English.lproj/MainMenu.nib/classes.nib =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: kext/Substitute.cpp =================================================================== --- kext/Substitute.cpp (revision 214) +++ kext/Substitute.cpp (working copy) @@ -621,10 +621,14 @@ //capslockHeldDown = 0; } } - if (dcConfig & CAPSLOCK_TO_DELETE) - { - return_value = kSupress; - } + if (dcConfig & CAPSLOCK_TO_DELETE) + { + return_value = kSupress; + } + if (dcConfig & CAPSLOCK_TO_ESCAPE) + { + return_value = kSupress; + } break; // end capslock key
case HOME_KEY: // begin home key @@ -812,6 +816,12 @@ *key = DELETE_KEY; removeFlags |= CAPSLOCK_FLAG; } + if (dcConfig & CAPSLOCK_TO_ESCAPE) + { + return_value = kSwitch; + *key = ESCAPE_KEY; + removeFlags |= CAPSLOCK_FLAG; + } break; }
--- kext/DoubleCommand.xcodeproj/project.pbxproj (revision 214) +++ kext/DoubleCommand.xcodeproj/project.pbxproj (working copy) @@ -143,9 +143,11 @@ 089C1669FE841209C02AAC07 /* Project object */ = { isa = PBXProject; buildConfigurationList = 009D757708A77D0C005D9003 /* Build configuration list for PBXProject "DoubleCommand" */; + compatibilityVersion = "Xcode 2.4"; hasScannedForEncodings = 1; mainGroup = 089C166AFE841209C02AAC07 /* DoubleCommand */; projectDirPath = ""; + projectRoot = ""; targets = ( 32D94FC30562CBF700B6AF17 /* DoubleCommand */, ); Index: kext/Common.h =================================================================== --- kext/Common.h (revision 214) +++ kext/Common.h (working copy) @@ -107,6 +107,7 @@ #define CONTROL_KEY 59 #define CONTROL_KEY_R 62 #define CAPSLOCK_KEY 57 +#define ESCAPE_KEY 53 // special caps key for TiBook (and probably other models) #define SPECIAL_CAPSLOCK_KEY 127 #define ENTER_KEY 52 @@ -201,17 +202,17 @@ #define DISABLE_COMMAND_AND_OPTION 32768
#define PC_STYLE_HOME_AND_END 65536 -#define BACKSLASH_TO_FORWARD_DELETE 131072 +#define BACKSLASH_TO_FORWARD_DELETE 131072 #define SWAP_FUNCTION_KEYS 262144 -#define CAPSLOCK_DISABLED 524288 -#define ENTER_TO_FORWARD_DELETE 1048576 -#define CONTROL_TO_DELETE 2097152 -#define DELETE_TO_CONTROL 4194304 -#define MB_DEBUG_OUTPUT 8388608 -#define SWAP_TILDE_AND_COMMAND 16777216 +#define CAPSLOCK_DISABLED 524288 +#define ENTER_TO_FORWARD_DELETE 1048576 +#define CONTROL_TO_DELETE 2097152 +#define DELETE_TO_CONTROL 4194304 +#define MB_DEBUG_OUTPUT 8388608 +#define SWAP_TILDE_AND_COMMAND 16777216
-#define CAPSLOCK_TO_DELETE 33554432 -//#define 67108864 +#define CAPSLOCK_TO_DELETE 33554432 +#define CAPSLOCK_TO_ESCAPE 67108864 //#define 134217728 //#define 268435456 //#define 536870912
Log in to post a comment.
Built on Leopard, running for a couple of days without problems. Sorry if I missed anything, this is the first thing I've done on MacOSX.
Index: prefpane/DoubleCommandPrefPane.xcodeproj/project.pbxproj
--- prefpane/DoubleCommandPrefPane.xcodeproj/project.pbxproj (revision 214)
+++ prefpane/DoubleCommandPrefPane.xcodeproj/project.pbxproj (working copy)
@@ -172,9 +172,11 @@
089C1669FE841209C02AAC07 /* Project object */ = {
isa = PBXProject;
buildConfigurationList = 00F60E45094F764D00C5D712 /* Build configuration list for PBXProject "DoubleCommandPrefPane" */;
+ compatibilityVersion = "Xcode 2.4";
hasScannedForEncodings = 1;
mainGroup = 089C166AFE841209C02AAC07 /* DCP_prefPane */;
projectDirPath = "";
+ projectRoot = "";
targets = (
8D5B49AC048680CD000E48DA /* DoubleCommand Prefences */,
);
Index: prefpane/English.lproj/MainMenu.nib/info.nib
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: prefpane/English.lproj/MainMenu.nib/classes.nib
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: kext/Substitute.cpp
===================================================================
--- kext/Substitute.cpp (revision 214)
+++ kext/Substitute.cpp (working copy)
@@ -621,10 +621,14 @@
//capslockHeldDown = 0;
}
}
- if (dcConfig & CAPSLOCK_TO_DELETE)
- {
- return_value = kSupress;
- }
+ if (dcConfig & CAPSLOCK_TO_DELETE)
+ {
+ return_value = kSupress;
+ }
+ if (dcConfig & CAPSLOCK_TO_ESCAPE)
+ {
+ return_value = kSupress;
+ }
break; // end capslock key
case HOME_KEY: // begin home key
@@ -812,6 +816,12 @@
*key = DELETE_KEY;
removeFlags |= CAPSLOCK_FLAG;
}
+ if (dcConfig & CAPSLOCK_TO_ESCAPE)
+ {
+ return_value = kSwitch;
+ *key = ESCAPE_KEY;
+ removeFlags |= CAPSLOCK_FLAG;
+ }
break;
}
Index: kext/DoubleCommand.xcodeproj/project.pbxproj
--- kext/DoubleCommand.xcodeproj/project.pbxproj (revision 214)
+++ kext/DoubleCommand.xcodeproj/project.pbxproj (working copy)
@@ -143,9 +143,11 @@
089C1669FE841209C02AAC07 /* Project object */ = {
isa = PBXProject;
buildConfigurationList = 009D757708A77D0C005D9003 /* Build configuration list for PBXProject "DoubleCommand" */;
+ compatibilityVersion = "Xcode 2.4";
hasScannedForEncodings = 1;
mainGroup = 089C166AFE841209C02AAC07 /* DoubleCommand */;
projectDirPath = "";
+ projectRoot = "";
targets = (
32D94FC30562CBF700B6AF17 /* DoubleCommand */,
);
Index: kext/Common.h
===================================================================
--- kext/Common.h (revision 214)
+++ kext/Common.h (working copy)
@@ -107,6 +107,7 @@
#define CONTROL_KEY 59
#define CONTROL_KEY_R 62
#define CAPSLOCK_KEY 57
+#define ESCAPE_KEY 53
// special caps key for TiBook (and probably other models)
#define SPECIAL_CAPSLOCK_KEY 127
#define ENTER_KEY 52
@@ -201,17 +202,17 @@
#define DISABLE_COMMAND_AND_OPTION 32768
#define PC_STYLE_HOME_AND_END 65536
-#define BACKSLASH_TO_FORWARD_DELETE 131072
+#define BACKSLASH_TO_FORWARD_DELETE 131072
#define SWAP_FUNCTION_KEYS 262144
-#define CAPSLOCK_DISABLED 524288
-#define ENTER_TO_FORWARD_DELETE 1048576
-#define CONTROL_TO_DELETE 2097152
-#define DELETE_TO_CONTROL 4194304
-#define MB_DEBUG_OUTPUT 8388608
-#define SWAP_TILDE_AND_COMMAND 16777216
+#define CAPSLOCK_DISABLED 524288
+#define ENTER_TO_FORWARD_DELETE 1048576
+#define CONTROL_TO_DELETE 2097152
+#define DELETE_TO_CONTROL 4194304
+#define MB_DEBUG_OUTPUT 8388608
+#define SWAP_TILDE_AND_COMMAND 16777216
-#define CAPSLOCK_TO_DELETE 33554432
-//#define 67108864
+#define CAPSLOCK_TO_DELETE 33554432
+#define CAPSLOCK_TO_ESCAPE 67108864
//#define 134217728
//#define 268435456
//#define 536870912