Skip to content

Commit

Permalink
got CW CE and CB working. Still no CIW
Browse files Browse the repository at this point in the history
  • Loading branch information
seanhess committed Jan 17, 2011
1 parent a7be27c commit cfa86ce
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
4 changes: 2 additions & 2 deletions KeyInterceptor.m
Expand Up @@ -39,9 +39,9 @@ CGEventRef onKeyDown(CGEventTapProxy proxy, CGEventType type, CGEventRef event,
info.ctl = ((flags & KeyCtl) != 0);

// HISTORY
[keys.presses insertObject:info atIndex:0];
[keys.presses addObject:info];
if (keys.presses.count > 3) {
[keys.presses removeObjectAtIndex:3];
[keys.presses removeObjectAtIndex:0];
}

// NSLog(@"DOWN (%@)", info.keyId);
Expand Down
21 changes: 21 additions & 0 deletions VIListener.m
Expand Up @@ -240,6 +240,27 @@ -(id)init {



// DEAD KEYS
[commandMode stop:@"Q"];
[commandMode stop:@"R"];
[commandMode stop:@"T"];
[commandMode stop:@"S"];
[commandMode stop:@"F"];

[commandMode stop:@"G"];
[commandMode stop:@";"];
[commandMode stop:@"'"];

[commandMode stop:@"Z"];
[commandMode stop:@"C"];
[commandMode stop:@"M"];
[commandMode stop:@","];
[commandMode stop:@"."];






// VISUAL MODE
[visualMode inherit:commandMode]; // you have to do this before adding your own, and after adding theirs
Expand Down

0 comments on commit cfa86ce

Please sign in to comment.