{"version":"1.0","type":"rich","title":"Related to https://twitter.com/timferro/status/705189339890843648 - notify when the user types in a certain word / sequence of chars","description":"This example demonstrates a keyboard shortcut detector that triggers a callback when a user types a specific sequence of characters—here, the name “alexandru.” It shows how a browser can monitor keypresses in real time and react to a predefined pattern. The code uses a plain JavaScript `keydown` event listener on the document, storing key codes in an array and comparing the last entered keys against the target sequence. When the sequence matches, the callback logs a message to the console. No external libraries are used; the implementation relies solely on native DOM event handling.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-033ce582e34625472e62?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}