Skip to content

Commit

Permalink
Merge pull request #735 from shivas/combobox-event-not-published
Browse files Browse the repository at this point in the history
Publish event as selected index changes
  • Loading branch information
lxn committed Nov 25, 2020
2 parents 0a7a9b4 + 5f8e50c commit 2a61ddb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Alexander Neumann <an2048@gmail.com>
Aman Gupta <aman@tmm1.net>
Anthony Dong <adongy@users.noreply.github.com>
Attila Tajti <attila.tajti@gmail.com>
Audrius Karabanovas <audrius@karabanovas.net>
Benny Siegert <bsiegert@gmail.com>
Cary Cherng <ccherng@gmail.com>
Dmitry Bagdanov <dimbojob@gmail.com>
Expand Down
1 change: 1 addition & 0 deletions combobox.go
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,7 @@ func (cb *ComboBox) WndProc(hwnd win.HWND, msg uint32, wParam, lParam uintptr) u

case win.CBN_SELCHANGE:
cb.selChangeIndex = selIndex
cb.currentIndexChangedPublisher.Publish()

case win.CBN_SELENDCANCEL:
if cb.selChangeIndex != -1 {
Expand Down

0 comments on commit 2a61ddb

Please sign in to comment.