2016-05-04 13:29 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)

* src/rtl/gtwin/gtwin.c
    ! strip ALT+CTRL and ALTGR from extended keycode when these modifiers
      are used with ASCII characters - it should fix problem with some
      national keyboards
This commit is contained in:
Przemysław Czerpak
2016-05-04 13:29:21 +02:00
parent b00774f5c5
commit 0f93e22120
2 changed files with 17 additions and 1 deletions

View File

@@ -10,6 +10,12 @@
* Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment
*/
2016-05-04 13:29 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rtl/gtwin/gtwin.c
! strip ALT+CTRL and ALTGR from extended keycode when these modifiers
are used with ASCII characters - it should fix problem with some
national keyboards
2016-04-29 16:25 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rtl/filesys.c
* src/rtl/hbcom.c

View File

@@ -1574,7 +1574,17 @@ static int hb_gt_win_ReadKey( PHB_GT pGT, int iEventMask )
iKey = HB_INKEY_NEW_UNICODEF( u, iFlags );
#endif
else if( iChar < 127 && ( iFlags & ( HB_KF_CTRL | HB_KF_ALT ) ) )
iKey = HB_INKEY_NEW_KEY( iChar, iFlags );
{
if( iChar >= 32 &&
( ( ( iFlags & HB_KF_CTRL ) != 0 && ( iFlags & HB_KF_ALT ) != 0 ) ||
( dwState & ( LEFT_ALT_PRESSED | RIGHT_ALT_PRESSED ) ) == RIGHT_ALT_PRESSED ) )
{
iFlags &= ~( HB_KF_CTRL | HB_KF_ALT );
iKey = HB_INKEY_NEW_CHARF( iChar, iFlags );
}
else
iKey = HB_INKEY_NEW_KEY( iChar, iFlags );
}
else
iKey = HB_INKEY_NEW_CHARF( iChar, iFlags );
}