summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/debugger/osx/debugosxdebugwindowhandler.m
diff options
context:
space:
mode:
Diffstat (limited to 'src/osd/modules/debugger/osx/debugosxdebugwindowhandler.m')
-rw-r--r--src/osd/modules/debugger/osx/debugosxdebugwindowhandler.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/osd/modules/debugger/osx/debugosxdebugwindowhandler.m b/src/osd/modules/debugger/osx/debugosxdebugwindowhandler.m
index d5382c19454..e8585179b96 100644
--- a/src/osd/modules/debugger/osx/debugosxdebugwindowhandler.m
+++ b/src/osd/modules/debugger/osx/debugosxdebugwindowhandler.m
@@ -357,6 +357,13 @@ NSString *const MAMEAuxiliaryDebugWindowWillCloseNotification = @"MAMEAuxiliaryD
}
+- (BOOL)control:(NSControl *)control textShouldBeginEditing:(NSText *)fieldEditor
+{
+ [history edit];
+ return YES;
+}
+
+
- (BOOL)control:(NSControl *)control textView:(NSTextView *)textView doCommandBySelector:(SEL)command {
if (control == expressionField) {
if (command == @selector(cancelOperation:)) {