-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
By pressing the Menu button on the keyboard (located left of the right Ctrl key) it brings up a undesirable context menu.
It is possible to avoid this using:
EventControllerKey {
key-pressed => $on_key_pressed() swapped;
}
klass.bind_template_instance_callbacks();#[template_callback]
pub fn on_key_pressed(
&self,
key: gdk::Key,
_: u32,
_: gdk::ModifierType,
_: >k4::EventControllerKey,
) -> glib::Propagation {
match key {
gdk::Key::Menu => glib::Propagation::Stop,
_ => {}
};
glib::Propagation::Proceed
}Metadata
Metadata
Assignees
Labels
No labels