How alex/what-happens-when works
This repository is an explanatory guide, not an executable application: its documented workflow follows Enter from keyboard input through operating-system event delivery to browser address-bar handling and URL parsing. It describes separate USB and virtual-keyboard input paths, then Windows, macOS, and GNU/Linux event-delivery paths. The excerpt also documents autocomplete while typing and fallback to a search engine when the input is not a valid URL. The tree contains only README.rst, and the supplied README excerpt ends during URL parsing, so later navigation and response stages are not represented.
Main entry points: README.rst OS input handling
Components 17
Input
- Key switch
README.rst - Keyboard controller
README.rst - USB transport
README.rst - Virtual keyboard
README.rst
OS event delivery
- OS input handling
README.rst - Windows keyboard drivers
README.rst - Windows message pump
README.rst - macOS WindowServer
README.rst - macOS event queue
README.rst - X server and evdev
README.rst - Window manager
README.rst
Browser handling
- Browser address bar
README.rst - Autocomplete
README.rst - URL parser
README.rst - Search fallback
README.rst
Other components
- User
- Default search engine
Connections 19
- User → Key switch: presses key
README.rst - Key switch → Keyboard controller: generates keycode
README.rst - Keyboard controller → USB transport: encodes keycode
README.rst - USB transport → OS input handling: delivers keycode
README.rst - User → Virtual keyboard: presses key
README.rst - Virtual keyboard → OS input handling: sends key event
README.rst - OS input handling → Windows keyboard drivers: delivers keydown
README.rst - Windows keyboard drivers → Windows message pump: sends message
README.rst - Windows message pump → Browser address bar: dispatches keydown
README.rst - OS input handling → macOS WindowServer: passes keycode
README.rst - macOS WindowServer → macOS event queue: dispatches event
README.rst - macOS event queue → Browser address bar: delivers keydown
README.rst - OS input handling → X server and evdev: delivers keycode
README.rst - X server and evdev → Window manager: sends character
README.rst - Window manager → Browser address bar: forwards character
README.rst - Browser address bar → Autocomplete: refines suggestions
README.rst - Browser address bar → URL parser: parses input
README.rst - URL parser → Search fallback: checks validity
README.rst - Search fallback → Default search engine: feeds search text
README.rst