changeset 1229:437b045a3b07

Fixed a (shift) tab focus change regression on Windows for spinbuttons/comboboxes. There were 2 versions of this code, one in _wndproc and one in _colorwndproc. The _colorwndproc version handled spinbuttons and comboboxes correctly, but due to an earlier key press fix, both versions were getting called... the incorrect one first causing focus to be given to the wrong control. Removed the extra complete version from _wndproc allowing _colorwnd proc to work.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 11 Oct 2011 23:37:21 +0000
parents f0746937f2c6
children 75a773cdb626
files win/dw.c
diffstat 1 files changed, 0 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/win/dw.c	Mon Oct 10 21:27:58 2011 +0000
+++ b/win/dw.c	Tue Oct 11 23:37:21 2011 +0000
@@ -1996,24 +1996,6 @@
          }
       }
       break;
-   case WM_CHAR:
-      if ( LOWORD( mp1 ) == '\t' )
-      {
-         if ( GetAsyncKeyState( VK_SHIFT ) & 0x8000 )
-            _shift_focus_back( hWnd );
-         else
-            _shift_focus( hWnd );
-         return TRUE;
-      }
-      else if( LOWORD( mp1 ) == '\r' )
-      {
-         ColorInfo *cinfo = (ColorInfo *)GetWindowLongPtr( hWnd, GWLP_USERDATA );
-         if ( cinfo && cinfo->clickdefault )
-         {
-            _click_default( cinfo->clickdefault );
-         }
-      }
-      break;
    case WM_USER:
       windowfunc = (void *)mp1;