* Add "..." menu for additional keys
* Symbol key (Fn+Ctrl) fixed
+ * Don't start virtual keyboard with caps lock enabled
-- Christian Pulvermacher <pulvermacher@gmx.de> Fri, 27 Aug 2010 19:09:29 +0200
//set up combobox
hosts.addItems(hostnames_sorted);
hosts.setEditable(true);
- //hosts.lineEdit()->setInputMethodHints(Qt::ImhLowercaseOnly); //doesn't work, but I tried.
connect(&hosts, SIGNAL(editTextChanged(QString)),
this, SLOT(cleanHostname(QString)));
layout.addWidget(&hosts);
void MainWindow::showInputPanel()
{
#ifdef Q_WS_MAEMO_5
+ //TODO: when hardware keyboard is open, this will only cause the IM to mess up 'real' key events
vnc_view->setAttribute(Qt::WA_InputMethodEnabled, true);
+ vnc_view->setInputMethodHints(Qt::ImhPreferLowercase); //without this, IM starts with caps lock
QEvent event(QEvent::RequestSoftwareInputPanel);
QApplication::sendEvent(vnc_view, &event);
}
} else { //middle or right button, send directly
- if ((e->type() == QEvent::MouseButtonPress)) {
- if (e->button() & Qt::MidButton)
- m_buttonMask |= 0x02;
- if (e->button() & Qt::RightButton)
- m_buttonMask |= 0x04;
- } else if (e->type() == QEvent::MouseButtonRelease) {
- if (e->button() & Qt::MidButton)
- m_buttonMask &= 0xfd;
- if (e->button() & Qt::RightButton)
- m_buttonMask &= 0xfb;
+ if ((e->type() == QEvent::MouseButtonPress)) {
+ if (e->button() & Qt::MidButton)
+ m_buttonMask |= 0x02;
+ if (e->button() & Qt::RightButton)
+ m_buttonMask |= 0x04;
+ } else if (e->type() == QEvent::MouseButtonRelease) {
+ if (e->button() & Qt::MidButton)
+ m_buttonMask &= 0xfd;
+ if (e->button() & Qt::RightButton)
+ m_buttonMask &= 0xfb;
}
vncThread.mouseEvent(cursor_x, cursor_y, m_buttonMask);
}