adium 2285:9f0e1528dd62: Allow shortcut keys with the letter 'a'...
commits at adium.im
commits at adium.im
Sat May 23 20:35:32 UTC 2009
details: http://hg.adium.im/adium/rev/9f0e1528dd62
revision: 2285:9f0e1528dd62
author: Zachary West <zacw at adium.im>
date: Sat May 23 16:35:26 2009 -0400
Allow shortcut keys with the letter 'a'. Fixes #12013.
The code was setting a keyCode of 0 for A. 0 was considered an invalid value (when reading in) but not when setting or anywhere else, causing it to become -1. the next time it loaded.
diffstat:
Source/PTKeyCombo.m | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r a97a293f755e -r 9f0e1528dd62 Source/PTKeyCombo.m
--- a/Source/PTKeyCombo.m Sat May 23 16:14:59 2009 -0400
+++ b/Source/PTKeyCombo.m Sat May 23 16:35:26 2009 -0400
@@ -46,7 +46,7 @@
else
{
keyCode = [[plist objectForKey: @"keyCode"] intValue];
- if( keyCode <= 0 ) keyCode = -1;
+ if( keyCode < 0 ) keyCode = -1;
modifiers = [[plist objectForKey: @"modifiers"] intValue];
if( modifiers <= 0 ) modifiers = -1;
More information about the commits
mailing list