diff --git a/ChangeLog.txt b/ChangeLog.txt index 28933e0d25..b9cd8cd4d7 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -10,6 +10,19 @@ * Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment */ +2014-01-24 00:12 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) + * contrib/gtqtc/gtqtc1.cpp + + enable virtual keyboard in Android and WinCE builds on focusOn and + mouseLeftButton events - just for tests so users can compile and + try code like tests/gtkeys.prg + ; Warning in Android builds Fn keys, INS, HOME, END, PgUP and letters + without modifiers do not work with virtual keyboards. Any solutions + are greatly welcome. Setting Qt::ImhNoPredictiveText in console widget + is not sufficient workaround for letters. + BTW in Android I suggest to install Hacker's Keyboard by Klaus Weidner. + It supports all PC keys and they works in terminal mode with ATE + (Android Terminal Emulator) and Harbour GTTRM raw binary applications. + 2014-01-22 04:17 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) * contrib/gtqtc/gtqtc.hbp ! fixed build condition (condition in {} can be used only once per line) diff --git a/contrib/gtqtc/gtqtc1.cpp b/contrib/gtqtc/gtqtc1.cpp index c2120c7db1..5e625d2419 100644 --- a/contrib/gtqtc/gtqtc1.cpp +++ b/contrib/gtqtc/gtqtc1.cpp @@ -2889,6 +2889,10 @@ void QTConsole::focusInEvent( QFocusEvent * event ) { hb_gt_qtc_addKeyToInputQueue( pQTC, HB_K_GOTFOCUS ); QWidget::focusInEvent( event ); +#if defined( HB_OS_ANDROID ) || defined( HB_OS_WIN_CE ) + QEvent reqSIPevent( QEvent::RequestSoftwareInputPanel ); + QApplication::sendEvent( pQTC->qWnd, &reqSIPevent ); +#endif } void QTConsole::focusOutEvent( QFocusEvent * event ) @@ -2978,6 +2982,12 @@ void QTConsole::mousePressEvent( QMouseEvent * event ) switch( event->button() ) { case Qt::LeftButton: +#if defined( HB_OS_ANDROID ) || defined( HB_OS_WIN_CE ) + { + QEvent reqSIPevent( QEvent::RequestSoftwareInputPanel ); + QApplication::sendEvent( pQTC->qWnd, &reqSIPevent ); + } +#endif iKey = K_LBUTTONDOWN; break;