diff options
author | Alexander Neumann <alexander.neumann@picos-software.com> | 2020-08-27 15:36:46 +0200 |
---|---|---|
committer | Alexander Neumann <alexander.neumann@picos-software.com> | 2020-08-27 15:36:46 +0200 |
commit | 4e77cbf029f88959b478424b7a710f532cc97e45 (patch) | |
tree | 0874ae44fd71dd49b571059bd839040a5ff046d4 | |
parent | TabWidget: Change automatic focus behavior on current page change (diff) | |
download | wireguard-windows-4e77cbf029f88959b478424b7a710f532cc97e45.tar.xz wireguard-windows-4e77cbf029f88959b478424b7a710f532cc97e45.zip |
TableView: Improve focus handling
-rw-r--r-- | tableview.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tableview.go b/tableview.go index 59f39c34..6d47e712 100644 --- a/tableview.go +++ b/tableview.go @@ -1921,7 +1921,7 @@ func tableViewNormalLVWndProc(hwnd win.HWND, msg uint32, wp, lp uintptr) uintptr win.SetFocus(tv.hwndFrozenLV) case win.WM_SETFOCUS: - tv.WndProc(tv.hWnd, msg, wp, lp) + tv.invalidateBorderInParent() tv.maybePublishFocusChanged(hwnd, msg, wp) case win.WM_KILLFOCUS: @@ -2667,7 +2667,7 @@ func (tv *TableView) WndProc(hwnd win.HWND, msg uint32, wp, lp uintptr) uintptr ensureWindowLongBits(tv.hwndNormalLV, win.GWL_STYLE, win.LVS_OWNERDRAWFIXED, false) case win.WM_SETFOCUS: - win.SetFocus(tv.hwndNormalLV) + win.SetFocus(tv.hwndFrozenLV) case win.WM_DESTROY: // As we subclass all windows of system classes, we prevented the |