Skip to content

KeyTipService clashing with Power Toys custom key bindings #1143

@dgosbell

Description

@dgosbell

Do you recall why the decision was made to set the backupFocusedControl to null on the following line instead of calling this.RestoreFocus() ?

https://github.com/fluentribbon/Fluent.Ribbon/blob/10d353ea0250d6f9baac6a06681e9db6c8144f30/Fluent.Ribbon/Services/KeyTipService.cs#LL290C37-L290C37

I have a user who is attempting to remap the Left key to Alt+H using Power Toys (see DaxStudio/DaxStudio#1137) and I think I've been able to track the issue down to the fact that the line above does not restore the focus. I was able to replicate the issue in the showcase app and setting the above line to this.RestoreFocus(); "fixed" the issue, but because I don't understand why the focus was not being restored in the first place I'm not sure what other side effects this change might have.

If this "fix" is overly simplistic I could just go down the route of adding an option to my app to set IsKeyTipHandlingEnabled ="False" - It's a bit of a drastic step, but I don't think it's worth wasting too much time on this issue as I don't see it as an overly common issue.


Environment

  • Fluent.Ribbon v?.?.?
  • Windows 11
  • .NET Framework 4.7.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions