1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-07 14:08:29 -04:00

fix(clipboard): paste selected history entry (#2660)

This commit is contained in:
jbwfu
2026-06-18 12:57:07 +08:00
committed by GitHub
parent 085ce01da6
commit b925010cb3
6 changed files with 74 additions and 8 deletions
@@ -37,8 +37,15 @@ DankPopout {
});
}
function releaseTextInputFocus() {
contentLoader.item?.releaseTextInputFocus();
}
function hide() {
close();
releaseTextInputFocus();
Qt.callLater(function () {
root.close();
});
}
function clearAll() {
@@ -57,6 +64,7 @@ DankPopout {
onShouldBeVisibleChanged: {
if (!shouldBeVisible) {
releaseTextInputFocus();
return;
}
if (clipboardAvailable) {
@@ -134,7 +142,7 @@ DankPopout {
clearConfirmDialog: clearConfirmDialog
onCloseRequested: root.hide()
onInstantCloseRequested: root.close()
onInstantCloseRequested: root.hide()
Component.onCompleted: {
activeTab = root.activeTab;