Skip to content

Commit

Permalink
Activate search field when changing search type
Browse files Browse the repository at this point in the history
  • Loading branch information
zorgiepoo committed Dec 21, 2023
1 parent 49b2002 commit cc3a18f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Bit Slicer/ZGDocumentWindowController.m
Original file line number Diff line number Diff line change
Expand Up @@ -1014,6 +1014,8 @@ - (void)_changeSearchType:(ZGSearchType)newSearchType
[self updateOptions];
[self markDocumentChange];
}

[self.window makeFirstResponder:_searchValueTextField];
}

- (IBAction)changeSearchType:(id)sender
Expand Down Expand Up @@ -1717,8 +1719,6 @@ - (IBAction)searchPointerToSelectedVariable:(id)__unused sender
_documentData.searchAddress = [NSString stringWithFormat:@"0x%llX", variable.address];
_searchValueTextField.stringValue = _documentData.searchAddress;

[self.window makeFirstResponder:_searchValueTextField];

[self markDocumentChange];
}

Expand Down

0 comments on commit cc3a18f

Please sign in to comment.