Skip to content

Commit 26dfae2

Browse files
author
Fixerer
committed
Allow binding of other mouse keys
1 parent 973b555 commit 26dfae2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

anyrun/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ pub enum MouseButton {
199199
Primary,
200200
Secondary,
201201
Middle,
202-
Unknown,
202+
Unknown(u32),
203203
}
204204

205205
#[derive(Deserialize, Debug, Clone, Copy)]

anyrun/src/plugin_box.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ impl FactoryComponent for PluginMatch {
4040
gtk::gdk::BUTTON_PRIMARY => MouseButton::Primary,
4141
gtk::gdk::BUTTON_SECONDARY => MouseButton::Secondary,
4242
gtk::gdk::BUTTON_MIDDLE => MouseButton::Middle,
43-
_ => MouseButton::Unknown,
43+
other => MouseButton::Unknown(other),
4444
};
4545
sender.output(MatchOutput::MouseAction(button, index.clone())).unwrap();
4646
}

0 commit comments

Comments
 (0)