2016-04-18 18:41 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)

* contrib/gtqtc/gtqtc1.cpp
  * src/rtl/gtwin/gtwin.c
  * src/rtl/gtwvt/gtwvt.c
    ! fixed stupid C&P typo in my previous modification - thanks to Lorenzo.
This commit is contained in:
Przemysław Czerpak
2016-04-18 18:41:39 +02:00
parent 836e6420ba
commit 7d2caa12d3
4 changed files with 10 additions and 4 deletions

View File

@@ -10,6 +10,12 @@
* Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment
*/
2016-04-18 18:41 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* contrib/gtqtc/gtqtc1.cpp
* src/rtl/gtwin/gtwin.c
* src/rtl/gtwvt/gtwvt.c
! fixed stupid C&P typo in my previous modification - thanks to Lorenzo.
2016-04-18 18:05 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rtl/strrepl.c
! fixed hb_strReplace() for strings longer then 1024 bytes and

View File

@@ -3211,7 +3211,7 @@ void QTConsole::keyPressEvent( QKeyEvent * evt )
wc = qStr[ i ].unicode();
hb_gt_qtc_addKeyToInputQueue( pQTC,
wc < 127 &&
( iFlags && ( HB_KF_CTRL | HB_KF_ALT ) ) ?
( iFlags & ( HB_KF_CTRL | HB_KF_ALT ) ) ?
HB_INKEY_NEW_KEY( wc, iFlags ) :
HB_INKEY_NEW_UNICODEF( wc, iFlags ) );
}

View File

@@ -1563,7 +1563,7 @@ static int hb_gt_win_ReadKey( PHB_GT pGT, int iEventMask )
iChar += 'A' - 1;
iKey = HB_INKEY_NEW_KEY( iChar, iFlags );
}
else if( iKey < 127 && ( iFlags && ( HB_KF_CTRL | HB_KF_ALT ) ) )
else if( iKey < 127 && ( iFlags & ( HB_KF_CTRL | HB_KF_ALT ) ) )
iKey = HB_INKEY_NEW_KEY( iKey, iFlags );
else if( iChar != 0 )
{

View File

@@ -2605,7 +2605,7 @@ static HB_BOOL hb_gt_wvt_KeyEvent( PHB_GTWVT pWVT, UINT message, WPARAM wParam,
#if defined( UNICODE )
if( iKey >= 127 )
iKey = HB_INKEY_NEW_UNICODEF( iKey, iFlags );
else if( iFlags && ( HB_KF_CTRL | HB_KF_ALT ) )
else if( iFlags & ( HB_KF_CTRL | HB_KF_ALT ) )
iKey = HB_INKEY_NEW_KEY( iKey, iFlags );
else
iKey = HB_INKEY_NEW_CHARF( iKey, iFlags );
@@ -2613,7 +2613,7 @@ static HB_BOOL hb_gt_wvt_KeyEvent( PHB_GTWVT pWVT, UINT message, WPARAM wParam,
int u = HB_GTSELF_KEYTRANS( pWVT->pGT, iKey );
if( u )
iKey = HB_INKEY_NEW_UNICODEF( u, iFlags );
else if( iKey < 127 && ( iFlags && ( HB_KF_CTRL | HB_KF_ALT ) ) )
else if( iKey < 127 && ( iFlags & ( HB_KF_CTRL | HB_KF_ALT ) ) )
iKey = HB_INKEY_NEW_KEY( iKey, iFlags );
else
{