liteide icon indicating copy to clipboard operation
liteide copied to clipboard

Auto complete can not work with virtual keyboard on tablet PC

Open runsys opened this issue 3 years ago • 1 comments

Auto complete can not work with virtual keyboard on tablet PC. Visual Studio 2017 auto complete can work with virtual keyboard rightly. But LiteIDE can not. virtual keyboard adress:https://freevirtualkeyboard.com/;

os windows 11 Liteide 37.4

runsys avatar Mar 26 '22 19:03 runsys

I fixed this problem. this is the patch code: M:\work\code\qt\liteide37.4\liteidex\src\plugins\liteeditor\codecompleter.cpp: delete: 697 m_popup->installEventFilter(this); 702 //QObject::connect(m_popup, SIGNAL(clicked(QModelIndex)), // this, SLOT(completerActivated(QModelIndex))); //QObject::connect(m_popup, SIGNAL(activated(QModelIndex)), // m_popup, SLOT(hide()));

add: 707 QObject::connect(m_popup, SIGNAL(activated(QModelIndex)), this, SLOT(completerActivated(QModelIndex)));

206 void CodeCompleterListView::keyPressEvent(QKeyEvent *e) { const int key = e->key(); switch (key) { case Qt::Key_End: case Qt::Key_Home: case Qt::Key_Up: case Qt::Key_Down: case Qt::Key_PageUp: case Qt::Key_PageDown: case Qt::Key_Return: case Qt::Key_Enter: case Qt::Key_Tab: QListView::keyPressEvent(e); break; default: (static_cast<QObject *>(m_widget))->event(e); } }

Now use the pen very comfort.

runsys avatar Apr 09 '22 01:04 runsys