Visual Studio Code, rebuilt in Rust
Rust
//! shortcut: no RegisterHotKey yet, so every registration fails and the workbench reports it; port/ledger.md M24
//! row app/src/system_wide_keybindings.rs:13.
use futures::channel::mpsc::UnboundedSender;
use super::{Candidate, ShortcutRegistry};
pub struct HotKeys;
impl HotKeys {
pub fn new(_presses: UnboundedSender<u32>) -> HotKeys {
HotKeys
}
pub fn accelerator(&self, _id: u32) -> Option<&str> {
None
}
}
impl ShortcutRegistry for HotKeys {
fn register(&mut self, _binding: &Candidate) -> bool {
false
}
fn unregister(&mut self, _accelerator: &str) {}
}