Skip to content

Keyboard navigation in Advanced Paste window isn't good #33000

@YourOrdinaryCat

Description

Microsoft PowerToys version

0.81.0

Installation method

Microsoft Store

Running as admin

No

Area(s) with issue?

Advanced Paste

Steps to reproduce

  1. Enable Advanced Paste.
  2. Try navigating with the keyboard.

✔️ Expected Behavior

Natural keyboard navigation - I will describe my expectations in a very granular way here. It might seem pedantic, but the WinUI flyouts already behave the way I'd expect them to, so trying to make sense of the window was a little cumbersome. So I think this is all very important to consider:

  • When the AI thing is off, "Paste as plain text" should be focused first, and I should be able to navigate through the list with the arrow keys alone
  • If "Paste as JSON" is focused, pressing the down arrow key should focus "Clipboard history"
  • If "Clipboard history" is focused, pressing the right arrow key should bring up the clipboard history (not sure if RTL would use left here, pretty sure it should but I haven't tested it yet)
    • When hovering with the mouse, it should bring up that flyout as well
    • There is another [relatively minor] thing with that flyout - clicking the right arrow key should set focus to the 3 dot menu on the right of the item. This is how the Windows taskbar's jump lists behave
    • Pressing the enter key does bring up that flyout as expected
  • When the AI thing is on, the text box should be focused first
  • This is personal preference and I'm not sure what best guidance here would be, but tab navigation should go like this:
    1. AI text box (if enabled, it is the "intended" main use case after all)
    2. "Paste as plain text" (another part of the functionality)
    3. The terms and conditions stuff (I doubt more than 1% of users actually care about these, specially those not using the AI thing - so this is also related to [Advanced Paste] Option to hide AI Paste from Advanced Paste window #32967)

❌ Actual Behavior

The window was styled to look like a Menu/CommandBar Flyout, but it doesn't behave as such. For a flow that revolves so much around a keyboard, it is very jarring - the UI does none of what I added in "Expected Behavior". A final, kinda weird bug - if you click on the tab key when "OpenAI Privacy" is focused, the focus will go nowhere, like it gets lost.

For future reference, this is what the UI looks like at the time of posting:
A window that wants to look like a flyout but doesn't actually behave like one

Other Software

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-AccessibilityIssues related to accessibilityArea-User Interfacethings that regard UX for PowerToysIdea-EnhancementNew feature or request on an existing productPowerToys_Win32Accessibility team tag - Tag needed for internal tooling trackingProduct-Advanced PasteRefers to the Advanced Paste module

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions