zsims / hunt-and-peck

Simple vimium/vimperator style navigation for Windows applications based on the UI Automation framework.
623 stars 54 forks source link

Add support for focus hints #3

Closed zsims closed 7 years ago

zsims commented 9 years ago

Currently on Invoke hints are displayed, this means some elements can't be interacted with. Specifically giving focus to text boxes, which would be handy!

extratype commented 7 years ago

I found IsKeyboardFocusable useful but there're too much elements where IsKeyboardFocusable is true. Edit boxes usually support Value pattern so I made use of it. I also added more patterns that can be interacted like Invoke pattern. https://github.com/extratype/hunt-and-peck/blob/more-hints/src/hap/Services/UiAutomationHintProviderService.cs#L581

zsims commented 7 years ago

Hey! Thanks for looking into this. Did it help improve things much? If so, raise a PR and we can merge it :)

zsims commented 7 years ago

Happy that #9 addresses this