Added beep to TextFIeld.Invalid() on Mac OS X.
This commit is contained in:
parent
811ec66d81
commit
b2eb341fb7
|
@ -205,6 +205,9 @@ id textfieldOpenInvalidPopover(id textfield, char *reason)
|
|||
// NSMaxYEdge is the bottom edge when looking (maximum edge in window coordinates)
|
||||
[popover showRelativeToRect:NSZeroRect ofView:toNSView(textfield) preferredEdge:NSMaxYEdge];
|
||||
|
||||
// and beep
|
||||
NSBeep();
|
||||
|
||||
return (id) popover;
|
||||
}
|
||||
|
||||
|
|
|
@ -49,7 +49,6 @@ func (t *textfield) OnChanged(f func()) {
|
|||
func (t *textfield) Invalid(reason string) {
|
||||
// TODO disable animations if reason is still valid
|
||||
// TODO don't steal focus
|
||||
// TODO beep
|
||||
if t.invalid != nil {
|
||||
C.textfieldCloseInvalidPopover(t.invalid)
|
||||
t.invalid = nil
|
||||
|
|
Loading…
Reference in New Issue