From 6d8db6b9dfadd6164c4be7a053f25db8ef6b7998 Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Mon, 10 May 2021 21:20:09 +0000 Subject: Fix default URL binding The default binding for launching the URL hints was documented as Ctrl+Shift+U, but never actually set. This adds this binding as the default instead of having URLs only launchable using the mouse. --- alacritty/src/config/ui_config.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'alacritty/src/config/ui_config.rs') diff --git a/alacritty/src/config/ui_config.rs b/alacritty/src/config/ui_config.rs index d34389e9..d1f16f85 100644 --- a/alacritty/src/config/ui_config.rs +++ b/alacritty/src/config/ui_config.rs @@ -2,6 +2,7 @@ use std::cell::RefCell; use std::path::PathBuf; use std::rc::Rc; +use glutin::event::{ModifiersState, VirtualKeyCode}; use log::error; use serde::de::Error as SerdeError; use serde::{self, Deserialize, Deserializer}; @@ -238,7 +239,10 @@ impl Default for Hints { action, post_processing: true, mouse: Some(HintMouse { enabled: true, mods: Default::default() }), - binding: Default::default(), + binding: Some(HintBinding { + key: Key::Keycode(VirtualKeyCode::U), + mods: ModsWrapper(ModifiersState::SHIFT | ModifiersState::CTRL), + }), }], alphabet: Default::default(), } -- cgit