refactor: use the same create interface for all modes

This commit is contained in:
CJ van den Berg 2024-11-13 19:04:35 +01:00
parent 0037695983
commit ae3d21ad08
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
13 changed files with 13 additions and 13 deletions

View file

@ -85,7 +85,7 @@ pub fn Create(options: type) type {
try mv.floating_views.add(self.modal.widget());
try mv.floating_views.add(self.menu.container_widget);
return .{
.input_handler = keybind.mode.overlay.palette.create(),
.input_handler = try keybind.mode.overlay.palette.create(allocator, .{}),
.event_handler = EventHandler.to_owned(self),
.name = options.name,
};