hook up all the keyboard actions

This commit is contained in:
Mitchell Hashimoto
2022-11-15 20:10:50 -08:00
parent 3ce554462a
commit dad4923901
5 changed files with 96 additions and 1 deletions

View File

@@ -131,6 +131,13 @@ pub const Action = union(enum) {
copy_to_clipboard: void,
paste_from_clipboard: void,
/// Increase/decrease the font size by a certain amount
increase_font_size: u16,
decrease_font_size: u16,
/// Reset the font size to the original configured size
reset_font_size: void,
/// Dev mode
toggle_dev_mode: void,

View File

@@ -49,8 +49,22 @@ pub const Key = enum {
y,
z,
// numbers
zero,
one,
two,
three,
four,
five,
six,
seven,
eight,
nine,
// other
grave_accent, // `
minus,
equal,
// control
up,