cosmic::iced_widget::renderer::graphics::futures::keyboard

Function on_key_release

source
pub fn on_key_release<Message>(
    f: fn(_: Key, _: Modifiers) -> Option<Message>,
) -> Subscription<Message>
where Message: MaybeSend + 'static,
Expand description

Listens to keyboard key releases and calls the given function to map them into actual messages.

If the function returns None, the key release will be simply ignored.