Implement word wrap

This commit is contained in:
Jeremy Soller 2023-11-01 09:25:46 -06:00
parent 8fb9d823d7
commit 5ce34b93c4
No known key found for this signature in database
GPG key ID: DCFCA852D3906975
3 changed files with 38 additions and 8 deletions

View file

@ -5,6 +5,7 @@ use crate::Message;
// Makes key binding definitions simpler
const CTRL: Modifiers = Modifiers::CTRL;
const ALT: Modifiers = Modifiers::ALT;
const SHIFT: Modifiers = Modifiers::SHIFT;
#[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
@ -38,6 +39,7 @@ impl KeyBind {
bind!(CTRL, O, OpenFileDialog);
bind!(CTRL, S, Save);
bind!(CTRL, Q, Quit);
bind!(ALT, Z, ToggleWrap);
keybinds
}