copy the actual emoji instead of its code

This commit is contained in:
Andreas Schneider 2019-02-12 11:14:05 +01:00
parent 2e409d847f
commit 67b64c67ee
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ def handleQuery(query):
matches = sorted(matches, key=lambda data: data["matchCount"], reverse=True)
if query.isValid:
return [Item(id=match["name"], completion=match["name"], icon=match["emoji"], text=match["emoji"] + " " + match["code"], subtext=match["description"], actions=[ClipAction("Copy to clipboard", match["code"])]) for match in matches]
return [Item(id=match["name"], completion=match["name"], icon=match["emoji"], text=match["emoji"] + " " + match["code"], subtext=match["description"], actions=[ClipAction("Copy to clipboard", match["emoji"])]) for match in matches]
else:
return []