Fix issue with capital letters

This commit is contained in:
Ian Keane 2025-11-25 20:27:06 -05:00
parent 599cc22463
commit 7b6d24f955

View file

@ -262,7 +262,7 @@ impl App {
} }
} }
}, },
(KeyCode::Char(c), m) if m.is_empty() => match self.new_entry_mode { (KeyCode::Char(c), m) if m.is_empty() || m == KeyModifiers::SHIFT => match self.new_entry_mode {
NewEntryMode::Task => { NewEntryMode::Task => {
self.new_entry_project.insert(self.new_entry_cursor, c); self.new_entry_project.insert(self.new_entry_cursor, c);
self.new_entry_cursor += 1; self.new_entry_cursor += 1;
@ -394,7 +394,7 @@ impl App {
} }
} }
} }
(KeyCode::Char(c), m) if m.is_empty() => { (KeyCode::Char(c), m) if m.is_empty() || m == KeyModifiers::SHIFT => {
if self.reassign_project_cursor <= self.reassign_project_buffer.len() { if self.reassign_project_cursor <= self.reassign_project_buffer.len() {
self.reassign_project_buffer.insert(self.reassign_project_cursor, c); self.reassign_project_buffer.insert(self.reassign_project_cursor, c);
self.reassign_project_cursor += 1; self.reassign_project_cursor += 1;
@ -1705,7 +1705,7 @@ impl App {
} }
} }
} }
(KeyCode::Char(c), m) if m.is_empty() => { (KeyCode::Char(c), m) if m.is_empty() || m == KeyModifiers::SHIFT => {
if self.annotation_cursor <= self.annotation_buffer.len() { if self.annotation_cursor <= self.annotation_buffer.len() {
self.annotation_buffer.insert(self.annotation_cursor, c); self.annotation_buffer.insert(self.annotation_cursor, c);
self.annotation_cursor += 1; self.annotation_cursor += 1;