Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Binary file added wlx/mpv_wayland/build/mpv_wayland.wlx
Binary file not shown.
10 changes: 10 additions & 0 deletions wlx/mpv_wayland/src/mpvwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down