Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (29 sloc) 714 Bytes
//
// PBCommitList.m
// GitX
//
// Created by Pieter de Bie on 9/11/08.
// Copyright 2008 __MyCompanyName__. All rights reserved.
//
#import "PBCommitList.h"
@implementation PBCommitList
- (void) keyDown: (id) event
{
NSString* character = [event charactersIgnoringModifiers];
if ([character isEqualToString:@" "])
{
if ([event modifierFlags] & NSShiftKeyMask)
[webView scrollPageUp: self];
else
[webView scrollPageDown: self];
}
else if ([character rangeOfCharacterFromSet:[NSCharacterSet characterSetWithCharactersInString:@"jkcv"]].location == 0)
[webController sendKey: character];
else
[super keyDown: event];
}
- (void) copy:(id)sender
{
[controller copyCommitInfo];
};
@end
Jump to Line
Something went wrong with that request. Please try again.