添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement . We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WezTerm version

20220408-101518-b908e2dd

Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?

No, and I'll explain why below

Describe the bug

I'm running wezterm on CentOS 7. I've recently upgraded from 20220319 to 20220408 (both manually compiled) and noticed that my Ctrl+Shift+Space key binding which was supposed to trigger QuickSelect stopped working. Downgrading wezterm fixed the issue.

I complained about this in the wezterm chat and was instructed to enable debug_key_events and try the key combination again. This is the log that was emitted:

08:25:35.857  INFO   wezterm_gui::termwindow::keyevent     > key_event RawKeyEvent { key: Physical(LeftControl), modifiers: CTRL, phys_code: Some(LeftControl), raw_code: 37, repeat_count: 1, key_is_down: true, handled: Handled(false) }
08:25:35.857  INFO   wezterm_gui::termwindow::keyevent     > key_event KeyEvent { key: Control, modifiers: CTRL, repeat_count: 1, key_is_down: true, raw: Some(RawKeyEvent { key: Physical(LeftControl), modifiers: CTRL, phys_code: Some(LeftControl), raw_code: 37, repeat_count: 1, key_is_down: true, handled: Handled(false) }) }
08:25:35.857  INFO   wezterm_gui::termwindow::keyevent     > send to pane DOWN key=Control mods=CTRL
08:25:35.913  INFO   wezterm_gui::termwindow::keyevent     > key_event RawKeyEvent { key: Physical(LeftShift), modifiers: SHIFT | CTRL, phys_code: Some(LeftShift), raw_code: 50, repeat_count: 1, key_is_down: true, handled: Handled(false) }
08:25:35.913  INFO   wezterm_gui::termwindow::keyevent     > key_event KeyEvent { key: Shift, modifiers: SHIFT | CTRL, repeat_count: 1, key_is_down: true, raw: Some(RawKeyEvent { key: Physical(LeftShift), modifiers: SHIFT | CTRL, phys_code: Some(LeftShift), raw_code: 50, repeat_count: 1, key_is_down: true, handled: Handled(false) }) }
08:25:35.913  INFO   wezterm_gui::termwindow::keyevent     > send to pane DOWN key=Shift mods=SHIFT | CTRL
08:25:36.107  INFO   wezterm_gui::termwindow::keyevent     > key_event RawKeyEvent { key: Physical(Space), modifiers: SHIFT | CTRL, phys_code: Some(Space), raw_code: 65, repeat_count: 1, key_is_down: true, handled: Handled(false) }
08:25:36.107  INFO   wezterm_gui::termwindow::keyevent     > key_event KeyEvent { key: Char('@'), modifiers: SHIFT | CTRL, repeat_count: 1, key_is_down: true, raw: Some(RawKeyEvent { key: Physical(Space), modifiers: SHIFT | CTRL, phys_code: Some(Space), raw_code: 65, repeat_count: 1, key_is_down: true, handled: Handled(false) }) }
08:25:36.108  INFO   wezterm_gui::termwindow::keyevent     > send to pane DOWN key=Char('@') mods=SHIFT | CTRL
08:25:36.108  INFO   wezterm_term::terminalstate::keyboard > key_down: sending "\0", Char('@') SHIFT | CTRL
08:25:36.114  INFO   wezterm_gui::termwindow               > Ding! (this is the bell) in pane 0
08:25:36.194  INFO   wezterm_gui::termwindow::keyevent     > key_event KeyEvent { key: Char(' '), modifiers: SHIFT | CTRL, repeat_count: 1, key_is_down: false, raw: Some(RawKeyEvent { key: Physical(Space), modifiers: SHIFT | CTRL, phys_code: Some(Space), raw_code: 65, repeat_count: 1, key_is_down: false, handled: Handled(false) }) }
08:25:36.194  INFO   wezterm_gui::termwindow::keyevent     > send to pane UP key=Char(' ') mods=SHIFT | CTRL
08:25:36.272  INFO   wezterm_gui::termwindow::keyevent     > key_event KeyEvent { key: Control, modifiers: SHIFT, repeat_count: 1, key_is_down: false, raw: Some(RawKeyEvent { key: Physical(LeftControl), modifiers: SHIFT, phys_code: Some(LeftControl), raw_code: 37, repeat_count: 1, key_is_down: false, handled: Handled(false) }) }
08:25:36.272  INFO   wezterm_gui::termwindow::keyevent     > send to pane UP key=Control mods=SHIFT
08:25:36.280  INFO   wezterm_gui::termwindow::keyevent     > key_event KeyEvent { key: Shift, modifiers: NONE, repeat_count: 1, key_is_down: false, raw: Some(RawKeyEvent { key: Physical(LeftShift), modifiers: NONE, phys_code: Some(LeftShift), raw_code: 50, repeat_count: 1, key_is_down: false, handled: Handled(false) }) }
08:25:36.280  INFO   wezterm_gui::termwindow::keyevent     > send to pane UP key=Shift mods=NONE
08:25:36.672  INFO   wezterm_gui::termwindow::keyevent     > key_event RawKeyEvent { key: Physical(LeftAlt), modifiers: ALT, phys_code: Some(LeftAlt), raw_code: 64, repeat_count: 1, key_is_down: true, handled: Handled(false) }
08:25:36.673  INFO   wezterm_gui::termwindow::keyevent     > key_event KeyEvent { key: Alt, modifiers: ALT, repeat_count: 1, key_is_down: true, raw: Some(RawKeyEvent { key: Physical(LeftAlt), modifiers: ALT, phys_code: Some(LeftAlt), raw_code: 64, repeat_count: 1, key_is_down: true, handled: Handled(false) }) }
08:25:36.673  INFO   wezterm_gui::termwindow::keyevent     > send to pane DOWN key=Alt mods=ALT

Apparently Ctrl+Space gets "confused" with Ctrl+@.

Changing the key in the binding to phys:Space fixes the problem, but I was asked in chat to file an issue anyway.

To Reproduce

No response

Configuration

local wezterm = require("wezterm")
return {
	hide_tab_bar_if_only_one_tab = true,
	color_scheme = "ayu",
	disable_default_key_bindings = true,
	keys = {
		{ key = "=", mods = "CTRL", action = "IncreaseFontSize" },
		{ key = "-", mods = "CTRL", action = "DecreaseFontSize" },
		{ key = "0", mods = "CTRL", action = "ResetFontSize" },
		{ key = "Enter", mods = "ALT", action = "ToggleFullScreen" },
		{ key = "c", mods = "CTRL|SHIFT", action = wezterm.action({ CopyTo = "Clipboard" }) },
		{ key = "v", mods = "CTRL|SHIFT", action = wezterm.action({ PasteFrom = "Clipboard" }) },
		{ key = "x", mods = "CTRL|SHIFT", action = "ActivateCopyMode" },
		{ key = " ", mods = "CTRL|SHIFT", action = "QuickSelect" },

Expected Behavior

No response

No response

Anything else?

No response

I may be a bit dense, but I can't find this nightly build anywhere. I actually tried to find it before filing this bug (I looked at the releases page, tags and branches).

Anyway, I built from the main branch today, and I can't reproduce it anymore either. So it looks like it may have been fixed in the meantime...

https://wezfurlong.org/wezterm/install/linux.html has links to both stable and nightly builds.
Glad to hear that it is working for you!
I'm closing this as a duplicate of #1851

I'm going to lock this issue because it has been closed for 30 days . This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.