|
1 | 1 | use super::{
|
2 | 2 | command_pump, event_pump, visibility_blocking, CommandBlocking,
|
3 | 3 | CommandInfo, CommitDetailsComponent, Component, DiffComponent,
|
4 |
| - DrawableComponent, EventState, FileTreeOpen, |
| 4 | + DrawableComponent, EventState, |
5 | 5 | };
|
6 | 6 | use crate::{
|
7 | 7 | accessors,
|
@@ -138,12 +138,6 @@ impl Component for InspectCommitComponent {
|
138 | 138 | true,
|
139 | 139 | true,
|
140 | 140 | ));
|
141 |
| - |
142 |
| - out.push(CommandInfo::new( |
143 |
| - strings::commands::edit_item(&self.key_config), |
144 |
| - true, |
145 |
| - true, |
146 |
| - )); |
147 | 141 | }
|
148 | 142 |
|
149 | 143 | visibility_blocking(self)
|
@@ -178,22 +172,6 @@ impl Component for InspectCommitComponent {
|
178 | 172 | {
|
179 | 173 | self.details.focus(true);
|
180 | 174 | self.diff.focus(false);
|
181 |
| - } else if key_match( |
182 |
| - e, |
183 |
| - self.key_config.keys.open_file_tree, |
184 |
| - ) { |
185 |
| - if let Some(commit) = self |
186 |
| - .open_request |
187 |
| - .as_ref() |
188 |
| - .map(|open| open.commit_id) |
189 |
| - { |
190 |
| - self.hide_stacked(true); |
191 |
| - self.queue.push(InternalEvent::OpenPopup( |
192 |
| - StackablePopupOpen::FileTree( |
193 |
| - FileTreeOpen::new(commit), |
194 |
| - ), |
195 |
| - )); |
196 |
| - } |
197 | 175 | } else if key_match(
|
198 | 176 | e,
|
199 | 177 | self.key_config.keys.focus_left,
|
|
0 commit comments