mirror of
				https://github.com/lightpanda-io/browser.git
				synced 2025-10-30 07:31:47 +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 { | ||||
|     const params = (try cmd.params(struct { | ||||
|         type: Type, | ||||
|         key: []const u8, | ||||
|         code: []const u8, | ||||
|         modifiers: u4, | ||||
|         key: []const u8 = "", | ||||
|         code: []const u8 = "", | ||||
|         modifiers: u4 = 0, | ||||
|         // Many optional parameters are not implemented yet, see documentation url. | ||||
|  | ||||
|         const Type = enum { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Karl Seguin
					Karl Seguin