Convert keymap context to use generics and Cow<'static> so we don't have to add .to_string() and .into() for each usage
This commit is contained in:
@@ -2716,11 +2716,7 @@ impl View for Workspace {
|
||||
}
|
||||
|
||||
fn keymap_context(&self, _: &AppContext) -> KeymapContext {
|
||||
let mut keymap = Self::default_keymap_context();
|
||||
if self.active_pane() == self.dock_pane() {
|
||||
keymap.set.insert("Dock".into());
|
||||
}
|
||||
keymap
|
||||
Self::default_keymap_context()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user