mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 23:23:28 +00:00
Making sure that the optional parameters have defaults
Co-authored-by: Sjors <72333389+sjorsdonkers@users.noreply.github.com>
This commit is contained in:
@@ -35,9 +35,9 @@ pub fn processMessage(cmd: anytype) !void {
|
|||||||
fn dispatchKeyEvent(cmd: anytype) !void {
|
fn dispatchKeyEvent(cmd: anytype) !void {
|
||||||
const params = (try cmd.params(struct {
|
const params = (try cmd.params(struct {
|
||||||
type: Type,
|
type: Type,
|
||||||
key: []const u8,
|
key: []const u8 = "",
|
||||||
code: []const u8,
|
code: []const u8 = "",
|
||||||
modifiers: u4,
|
modifiers: u4 = 0,
|
||||||
// Many optional parameters are not implemented yet, see documentation url.
|
// Many optional parameters are not implemented yet, see documentation url.
|
||||||
|
|
||||||
const Type = enum {
|
const Type = enum {
|
||||||
|
|||||||
Reference in New Issue
Block a user