diff --git a/examples/test.xlsx b/examples/test.xlsx index f0a336f..3276b32 100644 Binary files a/examples/test.xlsx and b/examples/test.xlsx differ diff --git a/src/ui/mod.rs b/src/ui/mod.rs index 1b4cd9a..6e872b3 100644 --- a/src/ui/mod.rs +++ b/src/ui/mod.rs @@ -669,12 +669,12 @@ impl<'ws> Workspace<'ws> { self.state.reset_n_prefix(); self.state.char_queue.clear(); } - KeyCode::Char('b') if key.modifiers.contains(KeyModifiers::CONTROL) => { + KeyCode::Char('B') => { let address = self.book.location.clone(); let style = self.book.get_cell_style(self.book.current_sheet, &address).map(|s| s.font.b); self.toggle_bool_style(style, "font.b", &address)?; } - KeyCode::Char('i') if key.modifiers.contains(KeyModifiers::CONTROL) => { + KeyCode::Char('I') => { let address = self.book.location.clone(); let style = self.book.get_cell_style(self.book.current_sheet, &address).map(|s| s.font.i); self.toggle_bool_style(style, "font.i", &address)?; diff --git a/src/ui/test.rs b/src/ui/test.rs index f9568e7..64a7c9a 100644 --- a/src/ui/test.rs +++ b/src/ui/test.rs @@ -1291,7 +1291,7 @@ fn test_bold_text() { .expect("Failed to get style"); assert!(!before_style.font.b); script() - .ctrl('b') + .char('B') .run(&mut ws) .expect("Unable to run script"); let style = ws @@ -1300,7 +1300,7 @@ fn test_bold_text() { .expect("Failed to get style"); assert!(style.font.b); script() - .ctrl('b') + .char('B') .run(&mut ws) .expect("Unable to run script"); assert!(!before_style.font.b); @@ -1315,7 +1315,7 @@ fn test_italic_text() { .expect("Failed to get style"); assert!(!before_style.font.i); script() - .ctrl('i') + .char('I') .run(&mut ws) .expect("Unable to run script"); let style = ws @@ -1324,7 +1324,7 @@ fn test_italic_text() { .expect("Failed to get style"); assert!(style.font.i); script() - .ctrl('i') + .char('I') .run(&mut ws) .expect("Unable to run script"); assert!(!before_style.font.i);