key.Binding and basic parsing

This commit is contained in:
Mitchell Hashimoto
2022-08-23 17:40:36 -07:00
parent 5d8915cc9a
commit 7303909d01
3 changed files with 207 additions and 1 deletions

View File

@@ -486,6 +486,7 @@ fn keyCallback(
const tracy = trace(@src());
defer tracy.end();
//log.info("KEY {} {} {} {}", .{ key, scancode, mods, action });
_ = scancode;
if (action == .press and mods.super) {
@@ -542,7 +543,6 @@ fn keyCallback(
}
}
//log.info("KEY {} {} {} {}", .{ key, scancode, mods, action });
if (action == .press or action == .repeat) {
const c: u8 = switch (key) {
// Lots more of these: