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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user