visualfc / liteide

LiteIDE is a simple, open source, cross-platform Go IDE.
GNU Lesser General Public License v2.1
7.57k stars 970 forks source link

Auto complete can not work with virtual keyboard on tablet PC #1219

Open runsys opened 2 years ago

runsys commented 2 years ago

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 commented 2 years ago

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.