Add character palette menu item
This commit is contained in:
parent
e5602b0ad4
commit
456a390166
8 changed files with 43 additions and 9 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue