Powertoys: [PowerToys Run] PowerToys run does not get focused after opening

Created on 29 Oct 2020  ·  6Comments  ·  Source: microsoft/PowerToys

ℹ Computer information

  • PowerToys version: 0.23.2
  • PowerToy Utility: Run
  • Running PowerToys as Admin: Yes
  • Windows build number: 18363.1139

📝 Provide detailed reproduction steps (if any)

  • Open PowerToys settings
  • Open File explore
  • Select all items in file explorer(Ctrl+A)
  • Click on PowerToys settings window
  • Lunch PowerToys Run(Alt+Space)
  • Type something

✔️ Expected result

_What is the expected result of the above steps?_
It is possible to see typed symbols in PowerToy Run windows

❌ Actual result

PowerToy Run window is not focused as result it is not possible to type.

📷 Screenshots

19B05B38-7C43-4A81-9110-F18636952533

Issue-Bug Product-Launcher Triage-Needed

Most helpful comment

I was able to repro this issue when running PowerToys in administrator mode. Here are the repro steps :

  1. Start PowerToys and open PowerToys settings in administrator mode.
  2. Click on a powertoys name in the side navigation menu and toggle the radio button.
  3. Press hotkey to bring up PT Run search box and type a query. The cursor is blinking but nothing is typed in the search box.

This issue doesn't happen in normal mode.

All 6 comments

@mykhailopylyp Could you please start narrator (win+ctrl+enter) and check which window currently has focus? The issue here seems to be that PT Run has logical focus (notice blinking cursor in PT Run search box) but not the keyboard focus.

I was able to repro this issue when running PowerToys in administrator mode. Here are the repro steps :

  1. Start PowerToys and open PowerToys settings in administrator mode.
  2. Click on a powertoys name in the side navigation menu and toggle the radio button.
  3. Press hotkey to bring up PT Run search box and type a query. The cursor is blinking but nothing is typed in the search box.

This issue doesn't happen in normal mode.

I created a shortcut to PowerLauncher.exe on my desktop, but after launching it, the box gets no focus. However, if I use the keyboard shortcut it does get focus. When I launch the program with the shortcut on my desktop, I can see the cursor blinking in the box but, sadly, it has no focus. I first need to click in the search box so it receives the focus. It feels counter-productive. As I see it, the box should receive focus whether I launch the app with a click or a keyboard shortcut. Personally, I think it's a bug worth fixing.
Keep up the good work!

@somil55 PowerToys Settings window has focus.

I can reproduce this issue consistently using the following steps:

  1. Start PowerToys and open PowerToys settings in administrator mode.
  2. Start VScode in administrator mode. (*)
  3. Open an explorer window.
  4. In explorer, press hotkey to open PT Run and use PT Run to switch to the VScode process (in PT Run 0.25.0 type '
  5. In VScode, press the hotkey to open PT Run.
  6. The PT Run search box appears but is not focused; anything you type appears in de VScode editor.

(*) Step 2 is important here, it only works when the process you switch to is running in administrator mode. I can reproduce this with different programs, f.e. VScode, Sublime Text, Jetbrains Rider.

--
I hope this issue gets fixed because I want to use the PT Run process switcher, and switching to an elevated program is a common use case for me.

--
ptrun

I also get the issue from time to time on 0.25. I didn't identify a reproduction scenario tough.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

niels9001 picture niels9001  ·  3Comments

amorenew picture amorenew  ·  3Comments

patware picture patware  ·  3Comments

Satanarious picture Satanarious  ·  3Comments

Martin-Hausleitner picture Martin-Hausleitner  ·  3Comments