Skip to content
This repository has been archived by the owner on Jun 25, 2021. It is now read-only.

Fixed keyboard navigation in flipped orientations #20

Merged
merged 1 commit into from
Sep 5, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 20 additions & 4 deletions PSTreeGraphView/PSBaseTreeGraphView.m
Original file line number Diff line number Diff line change
Expand Up @@ -932,16 +932,32 @@ - (void) insertText:(NSString *)theText
[self toggleExpansionOfSelectedModelNodes:self];
break;
case 'w':
[self moveUp:self];
if (self.treeGraphOrientation == PSTreeGraphOrientationStyleVerticalFlipped ) {
[self moveDown:self];
} else {
[self moveUp:self];
}
break;
case 'a':
[self moveLeft:self];
if (self.treeGraphOrientation == PSTreeGraphOrientationStyleHorizontalFlipped ) {
[self moveRight:self];
} else {
[self moveLeft:self];
}
break;
case 's':
[self moveDown:self];
if (self.treeGraphOrientation == PSTreeGraphOrientationStyleVerticalFlipped ) {
[self moveUp:self];
} else {
[self moveDown:self];
}
break;
case 'd':
[self moveRight:self];
if (self.treeGraphOrientation == PSTreeGraphOrientationStyleHorizontalFlipped ) {
[self moveLeft:self];
} else {
[self moveRight:self];
}
break;

default:
Expand Down