Add character palette menu item

This commit is contained in:
Antonio Scandurra 2022-07-19 14:51:22 +02:00
parent e5602b0ad4
commit 456a390166
8 changed files with 43 additions and 9 deletions

View file

@ -1195,6 +1195,11 @@ impl MutableAppContext {
.set_menus(menus, &self.keystroke_matcher);
}
fn show_character_palette(&self, window_id: usize) {
let (_, window) = &self.presenters_and_platform_windows[&window_id];
window.show_character_palette();
}
fn prompt(
&self,
window_id: usize,
@ -3489,6 +3494,10 @@ impl<'a, T: View> ViewContext<'a, T> {
self.app.platform()
}
pub fn show_character_palette(&self) {
self.app.show_character_palette(self.window_id);
}
pub fn prompt(
&self,
level: PromptLevel,