diff --git a/README.md b/README.md index 5b152008..6608f6e7 100644 --- a/README.md +++ b/README.md @@ -659,7 +659,7 @@ command line option. | `address-mode-ip` | Show IP address only | `i` | | `address-mode-host` | Show hostname only | `n` | | `address-mode-both` | Show both IP address and hostname | `b` | -| `toggle-freeze` | Toggle freezing the display | `f` | +| `toggle-freeze` | Toggle freezing the display | `ctrl+f` | | `toggle-chart` | Toggle the chart | `c` | | `toggle-map` | Toggle the GeoIp map | `m` | | `expand-hosts` | Expand the hosts shown per hop | `]` | diff --git a/src/config/binding.rs b/src/config/binding.rs index b5e630e6..9f3e6672 100644 --- a/src/config/binding.rs +++ b/src/config/binding.rs @@ -153,7 +153,10 @@ impl From<(HashMap, ConfigBindings)> for TuiBindi toggle_freeze: *cmd_items .get(&TuiCommandItem::ToggleFreeze) .or(cfg.toggle_freeze.as_ref()) - .unwrap_or(&TuiKeyBinding::new(KeyCode::Char('f'))), + .unwrap_or(&TuiKeyBinding::new_with_modifier( + KeyCode::Char('f'), + KeyModifiers::CONTROL, + )), toggle_chart: *cmd_items .get(&TuiCommandItem::ToggleChart) .or(cfg.toggle_chart.as_ref()) diff --git a/src/frontend/render/help.rs b/src/frontend/render/help.rs index f307fb61..7d62929b 100644 --- a/src/frontend/render/help.rs +++ b/src/frontend/render/help.rs @@ -33,7 +33,7 @@ const HELP_LINES: [&str; 20] = [ "d - toggle hop details", "c - toggle chart", "m - toggle map", - "f - toggle freeze display", + "ctrl+f - toggle freeze display", "Ctrl+r - reset statistics", "Ctrl+k - flush DNS cache", "i - show IP only", diff --git a/trippy-config-sample.toml b/trippy-config-sample.toml index 7163de26..1ea474a0 100644 --- a/trippy-config-sample.toml +++ b/trippy-config-sample.toml @@ -313,7 +313,7 @@ previous-hop-address = "," address-mode-ip = "i" address-mode-host = "n" address-mode-both = "b" -toggle-freeze = "f" +toggle-freeze = "ctrl+f" toggle-chart = "c" toggle-map = "m" expand-hosts = "]"