mirror of
https://github.com/deunix-educ/sourizz.git
synced 2026-11-25 04:39:43 +01:00
Make the annotation and click-preview hotkeys switch on what they need
Ctrl+Alt+Shift+A did nothing while the master switch was off, and Ctrl+Alt+Shift+Y did nothing unless the master switch and the click effects were both on, with no feedback. They now enable what is missing (and persist it, like the other toggles) before acting. Document the Y hotkey in both READMEs. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -78,6 +78,9 @@ Prérequis à l'exécution :
|
||||
| `Ctrl+Alt+Shift+F` | Mode focus |
|
||||
| `Ctrl+Alt+Shift+A` | Mode annotation |
|
||||
| `Ctrl+Alt+Shift+X` | Effacer les annotations |
|
||||
| `Ctrl+Alt+Shift+Y` | Montrer l'effet de clic à l'emplacement du pointeur |
|
||||
|
||||
Le mode annotation et l'aperçu du clic activent ce dont ils ont besoin (l'interrupteur général, et les effets de clic pour l'aperçu) lorsque c'est éteint.
|
||||
|
||||
**Dessiner.** Maintenez la touche `Ctrl` de droite et bougez le pointeur : un trait suit, puis s'efface après le relâchement. Pour plus de contrôle, ouvrez le **mode annotation** : une barre d'outils apparaît et la surcouche capture la souris et le clavier.
|
||||
|
||||
|
||||
@@ -78,6 +78,9 @@ Run-time requirements:
|
||||
| `Ctrl+Alt+Shift+F` | Focus mode |
|
||||
| `Ctrl+Alt+Shift+A` | Annotation mode |
|
||||
| `Ctrl+Alt+Shift+X` | Clear annotations |
|
||||
| `Ctrl+Alt+Shift+Y` | Show the click effect at the pointer |
|
||||
|
||||
Annotation mode and the click preview switch on what they need (the master switch, and the click effects for the preview) when it is off.
|
||||
|
||||
**Drawing.** Hold the right `Ctrl` key and move the pointer: a stroke follows and fades away after you release. For more control open the **annotation mode**: a toolbar appears and the overlay captures the mouse and keyboard.
|
||||
|
||||
|
||||
+17
-2
@@ -151,8 +151,23 @@ impl Core {
|
||||
}
|
||||
Err(e) => log::warn!("set {k}: {e}"),
|
||||
},
|
||||
Command::ShowClick => self.engine.show_click(now),
|
||||
Command::AnnotateToggle => self.engine.toggle_annotation_mode(),
|
||||
Command::ShowClick => {
|
||||
// Asking for a preview of the click effect must not silently do nothing: switch on what it needs.
|
||||
if !self.cfg.general.enabled || !self.cfg.clicks.enabled {
|
||||
self.cfg.general.enabled = true;
|
||||
self.cfg.clicks.enabled = true;
|
||||
self.commit();
|
||||
}
|
||||
self.engine.show_click(now);
|
||||
}
|
||||
Command::AnnotateToggle => {
|
||||
// Annotation mode only starts while the master switch is on; leaving it needs nothing.
|
||||
if !self.cfg.general.enabled {
|
||||
self.cfg.general.enabled = true;
|
||||
self.commit();
|
||||
}
|
||||
self.engine.toggle_annotation_mode();
|
||||
}
|
||||
Command::AnnotateClear => self.engine.clear_annotations(),
|
||||
Command::Reload => self.reload(),
|
||||
Command::Status(tx) => {
|
||||
|
||||
Reference in New Issue
Block a user