diff options
| author | Qwerasd <qwerasd205@users.noreply.github.com> | 2025-05-26 21:39:15 -0600 |
|---|---|---|
| committer | Qwerasd <qwerasd205@users.noreply.github.com> | 2025-05-26 21:50:14 -0600 |
| commit | 2384bd69cc25db7228dcb2e90ea1d296bbf0ba84 (patch) | |
| tree | 5b1c2f912bb073b5fc2721024f556c86b89c4e23 /src/input/KeyEncoder.zig | |
| parent | 2fe2ccdbde58557f17ba1787551dfb0666b6a147 (diff) | |
style: use decl literals
This commit changes a LOT of areas of the code to use decl literals
instead of redundantly referring to the type.
These changes were mostly driven by some regex searches and then manual
adjustment on a case-by-case basis.
I almost certainly missed quite a few places where decl literals could
be used, but this is a good first step in converting things, and other
instances can be addressed when they're discovered.
I tested GLFW+Metal and building the framework on macOS and tested a GTK
build on Linux, so I'm 99% sure I didn't introduce any syntax errors or
other problems with this. (fingers crossed)
Diffstat (limited to 'src/input/KeyEncoder.zig')
| -rw-r--r-- | src/input/KeyEncoder.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input/KeyEncoder.zig b/src/input/KeyEncoder.zig index 41634f2f1..b5f18b5a2 100644 --- a/src/input/KeyEncoder.zig +++ b/src/input/KeyEncoder.zig @@ -164,7 +164,7 @@ fn kitty( var seq: KittySequence = .{ .key = entry.code, .final = entry.final, - .mods = KittyMods.fromInput( + .mods = .fromInput( self.event.action, self.event.key, all_mods, |
