question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Service for handling keyboard vs. mouse focus behavior

See original GitHub issue

Currently, we always show a focus effect on the button component, when there was no mouse event the last 100ms.

This is really hard-coded and there are bugs. For example, switching browser tabs, is restoring focus and showing the focus-effect (should not happen).

A service for interaction, which detects the last interaction type would solve that issue very elegant and would be also helpful for other components.

I also implemented that in Material 1 (still pending after re-submit) and I would like to implement it in Material 2 as well.

So let me know if you need this, and I will implement it 😃

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jelbourncommented, Apr 12, 2016

Having a service would be good. Feel free to put together a PR!

0reactions
angular-automatic-lock-bot[bot]commented, Sep 5, 2019

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Focus & Keyboard Operability - Usability & Web Accessibility
Validating Keyboard Accessibility · Disable your mouse, and use just a keyboard. · Ensure that the focus order is intuitive and follows the...
Read more >
Keyboard focus: Helping users navigate The Post without a ...
Keyboard focus : Helping users navigate The Post without a mouse. Imagine that you are in the middle of making a search on...
Read more >
Keyboard Accessibility - WebAIM
When an item is tabbed to, it has keyboard "focus" and can be activated or manipulated with the keyboard. A sighted keyboard user...
Read more >
Keyboard-Only Navigation for Improved Accessibility
For users who can't use a mouse make interactive and navigation elements easily accessible by tabbing and display a keyboard-focus indicator.
Read more >
Differentiate between focus event triggered by keyboard/mouse
The only way I can think of doing this is to have a handler listen in on the keypress and click events, and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found