Skip to content

Commit 246ba15

Browse files
Making sure that the optional parameters have defaults
Co-authored-by: Sjors <[email protected]>
1 parent 1558aa5 commit 246ba15

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cdp/domains/input.zig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ pub fn processMessage(cmd: anytype) !void {
3535
fn dispatchKeyEvent(cmd: anytype) !void {
3636
const params = (try cmd.params(struct {
3737
type: Type,
38-
key: []const u8,
39-
code: []const u8,
40-
modifiers: u4,
38+
key: []const u8 = "",
39+
code: []const u8 = "",
40+
modifiers: u4 = 0,
4141
// Many optional parameters are not implemented yet, see documentation url.
4242

4343
const Type = enum {

0 commit comments

Comments
 (0)