Skip to content

Commit

Permalink
fix: allow all words to trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
Illustar0 committed Nov 13, 2024
1 parent 6627dc7 commit a058131
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions PowerToysRunEnhance.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@
config = toml.load('config.toml')
searchWindowName = config['settings']['searchWindowName']
powerToysRunHotKey = config['settings']['powerToysRunHotKey']
alphabet = list(string.ascii_lowercase)


def on_press(key):
try:
if key.char.lower() in alphabet:
if hasattr(key, 'char') and key.char is not None:
comtypes.CoInitialize()
window = automation.WindowControl(Name=searchWindowName, className="Windows.UI.Core.CoreWindow",
searchDepth=2)
Expand Down

0 comments on commit a058131

Please sign in to comment.