Search
lxdream.org :: lxdream :: r787:6717c02ff81f
lxdream 0.9.1
released Jun 29
Download Now
changeset787:6717c02ff81f
parent786:8f6ece92500e
child788:eb238a77f3c0
authornkeynes
dateTue Jul 29 10:55:51 2008 +0000 (11 years ago)
Auto-cancel if the binding field loses focus
src/cocoaui/cocoa_ctrl.c
1.1 --- a/src/cocoaui/cocoa_ctrl.c Tue Jul 29 08:51:10 2008 +0000
1.2 +++ b/src/cocoaui/cocoa_ctrl.c Tue Jul 29 10:55:51 2008 +0000
1.3 @@ -64,6 +64,14 @@
1.4 }
1.5 }
1.6 }
1.7 +- (void)resignFirstResponder
1.8 +{
1.9 + if( isPrimed ) {
1.10 + [self setString: lastValue];
1.11 + [self setPrimed: NO];
1.12 + }
1.13 + [super resignFirstResponder];
1.14 +}
1.15 - (void)fireBindingChanged
1.16 {
1.17 id delegate = [self delegate];
.