|
|
@@ -3093,9 +3093,18 @@ void VMainWindow::initUniversalEntry()
|
|
|
{
|
|
|
m_ue = new VUniversalEntry(this);
|
|
|
m_ue->hide();
|
|
|
+
|
|
|
+#if defined(Q_OS_MACOS) || defined(Q_OS_MAC)
|
|
|
+ // Qt::Popup on macOS does not work well with input method.
|
|
|
+ m_ue->setWindowFlags(Qt::Tool
|
|
|
+ | Qt::NoDropShadowWindowHint);
|
|
|
+ m_ue->setWindowModality(Qt::ApplicationModal);
|
|
|
+#else
|
|
|
m_ue->setWindowFlags(Qt::Popup
|
|
|
| Qt::FramelessWindowHint
|
|
|
| Qt::NoDropShadowWindowHint);
|
|
|
+#endif
|
|
|
+
|
|
|
connect(m_ue, &VUniversalEntry::exited,
|
|
|
this, [this]() {
|
|
|
m_captain->setCaptainModeEnabled(true);
|