23 lines · 614 B · OCaml
RawDownload
type t =  | Ascii of char | Code of int | Ctrl of int | Fn of int  | Backspace | Delete | Escape | Insert | Enter  | Up | Down | Left | Right | Next | Prior | Home | End let to_string = function  | Ascii c -> Printf.sprintf "'%c'" c  | Code c -> string_of_int c  | Ctrl c -> Printf.sprintf "ctrl(%#x)" c  | Fn n -> "F" ^ string_of_int n  | Backspace -> "backspace"  | Delete -> "delete"  | Escape -> "escape"  | Insert -> "insert"  | Enter -> "enter"  | Up -> "up"  | Down -> "down"  | Left -> "left"  | Right -> "right"  | Next -> "next"  | Prior -> "prior"  | Home -> "home"  | End -> "end"

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t