diff --git a/build.sh b/build.sh index 78deeb2..e28edcc 100755 --- a/build.sh +++ b/build.sh @@ -95,7 +95,6 @@ mkdir -p wlx/kate/build install -m 644 wlx/kate/build/rich_editor_qt.wlx release/wlx/kate/ install -m 644 wlx/kate/*.md release/wlx/kate/ install -m 644 wlx/kate/*.png release/wlx/kate/ - pushd release tar -czpf ../plugins-$(date +%y.%m.%d)-$ARCH.tar.gz * popd diff --git a/wlx/mpv_wayland/build/mpv_wayland.wlx b/wlx/mpv_wayland/build/mpv_wayland.wlx new file mode 100755 index 0000000..c4b364b Binary files /dev/null and b/wlx/mpv_wayland/build/mpv_wayland.wlx differ diff --git a/wlx/mpv_wayland/src/mpvwidget.cpp b/wlx/mpv_wayland/src/mpvwidget.cpp index 569bebe..08fc157 100644 --- a/wlx/mpv_wayland/src/mpvwidget.cpp +++ b/wlx/mpv_wayland/src/mpvwidget.cpp @@ -360,6 +360,16 @@ bool MpvWidget::eventFilter(QObject *obj, QEvent *event) return true; // eat the ESC so DC doesn't process it } + // Ctrl+Q: return control to DC so it closes preview pane + if (ke->key() == Qt::Key_Q && (ke->modifiers() & Qt::ControlModifier)) { + m_isActive = false; + restoreFocusToDC(); + if (QWidget *top = window()) { + QKeyEvent *newKe = new QKeyEvent(QEvent::KeyPress, Qt::Key_Q, Qt::ControlModifier); + QCoreApplication::postEvent(top, newKe); + } + return true; + } // Forward the key to mpv if (m_mpv) { QString mpvKey = mapQtKeyToMpvKey(ke);