src/dev/keymap.bend checks
raw source on the hub · import 0x9b8f2c0a3d76a7c0e967cd5ae59d1b06/src/dev/keymap.bend as Keymap
2 imports
import Base import ../virtio/input.bend as In
Types
type KeyPair source · line 12 · raw
Data
KeyPair@code:U32 -> @key:U32 -> KeyPair
Definitions
def Keymap.table source · line 15 · raw
List<&2, KeyPair>
def Keymap.find source · line 47 · raw
@ps:List<&2, KeyPair> -> @+code:U32 -> U32
def Keymap.linux source · line 55 · raw
@code:U32 -> U32
The Linux key code of a window key code; 0 for keys it does not know.
def Keymap.has source · line 59 · raw
@xs:List<&2, U32> -> @+c:U32 -> Bool
Characters typed with Shift: the capitals and the shifted punctuation.
def Keymap.shifted source · line 66 · raw
@+c:U32 -> Bool
def Keymap.tap source · line 69 · raw
@shift:Bool -> @+key:U32 -> List<&2, 0x9b8f2c0a3d76a7c0e967cd5ae59d1b06/src/virtio/input.Hid>
def Keymap.press source · line 77 · raw
@+c:U32 -> List<&2, 0x9b8f2c0a3d76a7c0e967cd5ae59d1b06/src/virtio/input.Hid>
The key reports that type one character (none for one it cannot type).
def Keymap.typing source · line 83 · raw
@bs:List<&2, U32> -> @esc:Bool -> List<&2, 0x9b8f2c0a3d76a7c0e967cd5ae59d1b06/src/virtio/input.Hid>
The key reports that type a text (character codes), with backslash escapes: \n is Return, a backslash before anything else types that.