Page MenuHomeElementl

[dagit] Don't show shortcut hints on screen capture command

Authored by dish on Dec 2 2020, 11:23 PM.



Resolves #3012

Modify the shortcut keydown listener so that we stop showing shortcut hints when using commands like Cmd+Shift+4 to take screen captures.

The behavior will be:

  • Any modifier pressed for more than 800ms will display the hints
  • If any other key is pressed, including other modifiers, the timeout will be cleared and the hints will not be displayed
Test Plan

Verify that I can use Cmd+Shift+4 to take a screen capture, with no shortcut hints showing up.

Also verify that shorcuts still behave properly, and that holding down a modifier key will show the hints after 800ms.

Diff Detail

R1 dagster
Lint Not Applicable
Tests Not Applicable