docs.rs failed to build orbclient_window_shortcuts-0.1.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
orbclient_window_shortcuts-0.1.5
Shortcut support for orbclient::Window
Implementation to your Window application:
//Provides the capturing of default shortcuts: ALT+O (Open), ALT+N (New), ALT-Q (Quit) let mut sceq = ShortcutEq::with_defaults();
In a loop to capture window events implement EventOption::Key(ke):
Every keystroke that's a supported shortcut will return a ShortcutId::{New, Open, Quit}, which can be matched
events: loop { for event in window.events() { match event.to_option() { EventOption::Key(ke) => match sceq.update(ke) { Some(sc) => { //Sample action if PartialEq::eq(sc, &ShortcutId::Quit) {break 'events} None => {...}, }, ...