Check which control sends event

This commit is contained in:
Vas Crabb 2015-02-14 10:09:31 +11:00
parent 6ec9472c84
commit 503f71a189

View File

@ -359,7 +359,9 @@ NSString *const MAMEAuxiliaryDebugWindowWillCloseNotification = @"MAMEAuxiliaryD
- (BOOL)control:(NSControl *)control textShouldBeginEditing:(NSText *)fieldEditor
{
[history edit];
if (control == expressionField)
[history edit];
return YES;
}