AGPL-3.0-only, a source link in the app, and everything on dev since #5 #6
@@ -11,8 +11,12 @@
|
||||
//! it knows nothing about. Whatever default is picked is a key combination taken
|
||||
//! away from something on somebody's machine, silently, at install time. So there
|
||||
//! is no default: the feature is off until someone chooses a combination, and
|
||||
//! choosing one is how it turns on. [`SUGGESTED`] is offered by the UI as a
|
||||
//! starting point, not applied on its behalf.
|
||||
//! choosing one is how it turns on.
|
||||
//!
|
||||
//! The suggestion the settings screen offers (`CommandOrControl+Shift+N`) lives in
|
||||
//! the frontend, not here. It is a UI affordance — a starting point put in front of
|
||||
//! someone — and this side accepts any combination the OS will take, so a constant
|
||||
//! here would be a second copy of a string only the UI ever reads.
|
||||
//!
|
||||
//! ## Failure has to be visible
|
||||
//!
|
||||
@@ -34,13 +38,6 @@ const SHORTCUT_PREF: &str = "capture_shortcut";
|
||||
/// The window the hotkey opens. Also the label the capability file grants to.
|
||||
pub const CAPTURE_WINDOW: &str = "capture";
|
||||
|
||||
/// What the UI offers as a starting point. NOT applied automatically — see above.
|
||||
///
|
||||
/// `CommandOrControl+Shift+N`: the Command/Control split is Tauri's own portable
|
||||
/// spelling, and Shift+N is rare enough to be free on most desktops while still
|
||||
/// meaning "new" to the person pressing it.
|
||||
pub const SUGGESTED: &str = "CommandOrControl+Shift+N";
|
||||
|
||||
/// Emitted to the main window after a capture is saved, so the board reloads.
|
||||
///
|
||||
/// The two windows hold separate copies of the frontend and therefore separate
|
||||
|
||||
Reference in New Issue
Block a user