android return key behaviour enhancements

This commit is contained in:
doitux committed 2012-12-21 00:36:01 +01:00
1 parent 5a869691e4
commit 5a87ce08b3
10 files changed
+152 -2

No files matched your search

@@ -87,7 +87,7 @@ bool newGameDialogImpl::eventFilter(QObject *obj, QEvent *event)
QKeyEvent *keyEvent = static_cast<QKeyEvent*>(event);
#ifdef ANDROID
//androi hack for crash bug (hopefully useless from necessitas beta2)
//androi changes for return key behavior (hopefully useless from necessitas beta2)
if (event->type() == QEvent::KeyPress && keyEvent->key() == Qt::Key_Return) {
if(spinBox_gameSpeed->hasFocus()) {
spinBox_gameSpeed->clearFocus();