Skip to content

Commit

Permalink
Switch xref shortcut to Alt+X
Browse files Browse the repository at this point in the history
  • Loading branch information
ergrelet committed Mar 22, 2024
1 parent 341ea13 commit d92b889
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions resym/src/resym_app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ impl ResymApp {

// Cross-references button
if let Some(selected_type_index) = self.selected_type_index {
if ui.button("🔍 Find XRefs to (Ctrl+X)").clicked() {
if ui.button("🔍 Find XRefs to (Alt+X)").clicked() {
self.list_xrefs_for_type(selected_type_index);
}
}
Expand Down Expand Up @@ -484,12 +484,12 @@ impl ResymApp {
});

// Keyboard shortcut for finding cross-references
const CTRL_X_SHORTCUT: egui::KeyboardShortcut = egui::KeyboardShortcut {
modifiers: egui::Modifiers::CTRL,
const ALT_X_SHORTCUT: egui::KeyboardShortcut = egui::KeyboardShortcut {
modifiers: egui::Modifiers::ALT,
logical_key: egui::Key::X,
};
ui.input_mut(|input_state| {
if input_state.consume_shortcut(&CTRL_X_SHORTCUT) {
if input_state.consume_shortcut(&ALT_X_SHORTCUT) {
if let Some(selected_type_index) = self.selected_type_index {
self.list_xrefs_for_type(selected_type_index);
}
Expand Down

0 comments on commit d92b889

Please sign in to comment.