Skip to content

Commit

Permalink
Convert white-space to tabs to match source.
Browse files Browse the repository at this point in the history
  • Loading branch information
depeele committed Nov 15, 2024
1 parent 69526ab commit daba861
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions src/hooks/use-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,31 @@ import useStdin from './use-stdin.js';
*/
export type Key = {
/**
* The interpreted name of the key that was pressed. This is primarily useful
* for meta keys (e.g. Home, End, Insert).
*
* For example, if the user presses the Home key, `key.name` will be set to
* `home`.
*
* For non-meta keys, the `key.name` will be equivalent to the lower-cased
* version of `input`.
*
* Currently identified meta keys:
* - `f1` - `f12`
* - `escape`
* - `number` (for all number keys 0-9)
* - `return`
* - `up` (arrow keys)
* - `down` (arrow keys)
* - `left` (arrow keys)
* - `right` (arrow keys)
* - `insert`
* - `delete`
* - `home`
* - `end`
* - `pageup`
* - `pagedown`
* - `space`
* The interpreted name of the key that was pressed. This is primarily useful
* for meta keys (e.g. Home, End, Insert).
*
* For example, if the user presses the Home key, `key.name` will be set to
* `home`.
*
* For non-meta keys, the `key.name` will be equivalent to the lower-cased
* version of `input`.
*
* Currently identified meta keys:
* - `f1` - `f12`
* - `escape`
* - `number` (for all number keys 0-9)
* - `return`
* - `up` (arrow keys)
* - `down` (arrow keys)
* - `left` (arrow keys)
* - `right` (arrow keys)
* - `insert`
* - `delete`
* - `home`
* - `end`
* - `pageup`
* - `pagedown`
* - `space`
*/
name: string;

Expand Down

0 comments on commit daba861

Please sign in to comment.