diff options
author | Alexander Neumann <an2048@gmail.com> | 2013-05-08 21:02:59 +0200 |
---|---|---|
committer | Alexander Neumann <an2048@gmail.com> | 2013-05-08 21:02:59 +0200 |
commit | b327ba9b293f224ff892d22aa8762a039b602f63 (patch) | |
tree | 35ecc96494584eebe432a2b475bfcd38c966cd41 /lineedit.go | |
parent | Mirror key codes from go-winapi and fill in some blanks (diff) | |
download | wireguard-windows-b327ba9b293f224ff892d22aa8762a039b602f63.tar.xz wireguard-windows-b327ba9b293f224ff892d22aa8762a039b602f63.zip |
LineEdit: Remove ReturnPressed event
Diffstat (limited to 'lineedit.go')
-rw-r--r-- | lineedit.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lineedit.go b/lineedit.go index 5a2ab083..d48a2c4e 100644 --- a/lineedit.go +++ b/lineedit.go @@ -20,7 +20,6 @@ type LineEdit struct { WidgetBase editingFinishedPublisher EventPublisher readOnlyChangedPublisher EventPublisher - returnPressedPublisher EventPublisher textChangedPublisher EventPublisher charWidthFont *Font charWidth int @@ -215,10 +214,6 @@ func (le *LineEdit) EditingFinished() *Event { return le.editingFinishedPublisher.Event() } -func (le *LineEdit) ReturnPressed() *Event { - return le.returnPressedPublisher.Event() -} - func (le *LineEdit) TextChanged() *Event { return le.textChangedPublisher.Event() } @@ -260,7 +255,6 @@ func (le *LineEdit) WndProc(hwnd HWND, msg uint32, wParam, lParam uintptr) uintp case WM_KEYDOWN: if wParam == VK_RETURN { - le.returnPressedPublisher.Publish() le.editingFinishedPublisher.Publish() } |