QKeyEvent *keyEvent = static_cast<QKeyEvent*>(ev);
int key = keyEvent->key();
+ // qDebug() << keyEvent->text();
switch (key) {
case Qt::Key_Enter:
case Qt::Key_Return:
break;
default:
-
+ qDebug() << keyEvent->text();
editor->setFocus();
editor->event(ev);
popup->hide();
QString query = editor->text();
originalText = query;
- qDebug() << "originalText" << originalText;
+ // qDebug() << "originalText" << originalText;
if (query.isEmpty()) return;
QString locale = QLocale::system().name().replace("_", "-");
void GSuggestCompletion::currentItemChanged(QListWidgetItem *current) {
if (current) {
- qDebug() << "current" << current->text();
+ // qDebug() << "current" << current->text();
current->setSelected(true);
editor->setText(current->text());
editor->setSelection(originalText.length(), editor->text().length());