Skip to content
Open
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
11 changes: 10 additions & 1 deletion XVim/IDEWorkspaceTabController+XVim.m
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,18 @@ static inline BOOL xvim_horizontallyStackingModeForMode(GeniusLayoutMode mode) {

@implementation IDEWorkspaceTabController (XVim)

- (id)xvim_keyboardFocusAreas {
if ([self respondsToSelector:@selector(_keyboardFocusAreas)]) {
return [self performSelector:@selector(_keyboardFocusAreas)];
} else if ([self respondsToSelector:@selector(_keyboardFocusAreas:)]) {
return [self performSelector:@selector(_keyboardFocusAreas:) withObject:@YES];
}
return nil;
}

- (NSArray*)xvim_allEditorArea{
NSMutableArray* otherViews = [[NSMutableArray alloc] init];
for( IDEViewController* c in [self _keyboardFocusAreas] ){
for( IDEViewController* c in [self xvim_keyboardFocusAreas] ){
if( [[[c class] description] isEqualToString:@"IDEEditorContext"] ){
[otherViews addObject:c];
}
Expand Down