module Ydokey

Extended Modules

Defined in:

ydokey.cr

Constant Summary

CODES_FILE = "/usr/include/linux/input-event-codes.h"

Input event codes

KEY_REGEX = /#define KEY_(?<key>\w+)\s+(?<keycode>(0[xX])?[0-9a-fA-F]+).*/

See `/usr/include/linux/input-event-codes.h' for available key codes (KEY_*)

KEYS_MAP = {"alt" => "leftalt", "ctrl" => "leftctrl", "control" => "leftctrl", "meta" => "leftmeta", "super" => "leftmeta", "shift" => "leftshift", "return" => "enter"}
NAME = "ydokey"
VERSION = "0.4.2"

Instance Method Summary

Instance Method Detail

def codes_file #

[View source]
def key_mappings : Hash(String, Int32) #

[View source]
def list_keys : Array(String) #

[View source]
def to_key_codes(input : String) : String #

[View source]