mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-06-22 11:05:22 -04:00
Enhance/clipboard history interactions (#2668)
* feat(clipboard): add entry context menu * feat(clipboard): add click to paste option * feat(clipboard): add optional copy and paste action buttons * fix(clipboard): default selection and esc behavior * fix(clipboard): prevent clear and filter overlap * Update to remove dead kb nav & add escape action on context menu --------- Co-authored-by: purian23 <purian23@gmail.com>
This commit is contained in:
@@ -1883,10 +1883,10 @@ Item {
|
||||
}
|
||||
if (!selectedItem)
|
||||
return;
|
||||
executeItem(selectedItem);
|
||||
executeItem(selectedItem, true);
|
||||
}
|
||||
|
||||
function executeItem(item) {
|
||||
function executeItem(item, isKeyboard = false) {
|
||||
if (!item)
|
||||
return;
|
||||
|
||||
@@ -1929,7 +1929,8 @@ Item {
|
||||
AppSearchService.executeBuiltInLauncherItem(item.data);
|
||||
break;
|
||||
case "clipboard":
|
||||
if (SettingsData.clipboardEnterToPaste) {
|
||||
var shouldPaste = isKeyboard ? SettingsData.clipboardEnterToPaste : SettingsData.clipboardClickToPaste;
|
||||
if (shouldPaste) {
|
||||
ClipboardService.pasteEntry(item.data, function () {
|
||||
root.itemExecuted();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user