Add plain right-click paste, with a SHIFT variant for full-screen apps

Right button had no default binding, so plain right-click did nothing.
Added mods="NONE" -> PasteFrom("Clipboard"). Full-screen apps that
enable mouse reporting (e.g. Claude Code's TUI) swallow unmodified
clicks before they reach wezterm, so also bound the same paste action
to mods="SHIFT", which wezterm always treats as a local override
regardless of the app's mouse capture. Kept the existing Ctrl+Shift
binding for compatibility.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-18 11:00:27 +09:00
parent 902dcefac3
commit a1739326eb

View File

@@ -861,8 +861,25 @@ config.key_tables = {
},
}
-- [6] 마우스 바인딩: Ctrl+Shift+우클릭으로 붙여넣기, Ctrl+클릭으로 링크 열기
-- [6] 마우스 바인딩: 우클릭으로 붙여넣기, Ctrl+클릭으로 링크 열기
--
-- 우클릭 붙여넣기는 수정키 없이(mods = "NONE") 기본으로 동작한다. 다만 Claude Code처럼
-- 마우스 리포팅(SGR 마우스 모드)을 켜는 전체화면 앱 안에서는, 수정키 없는 클릭이
-- wezterm이 아니라 그 앱으로 그대로 전달돼서 붙여넣기가 안 먹는다. wezterm은 SHIFT를
-- 누르고 있으면 앱의 마우스 캡처를 무시하고 항상 로컬 바인딩을 실행하도록 되어 있어서,
-- 같은 붙여넣기 동작을 SHIFT 조합에도 등록해 둔다 (Claude Code 전체화면에서는 Shift+우클릭 사용).
-- Ctrl+Shift+우클릭도 같은 이유로 계속 남겨둔다(기존 습관/호환용).
config.mouse_bindings = {
{
event = { Down = { streak = 1, button = "Right" } },
mods = "NONE",
action = act.PasteFrom("Clipboard"),
},
{
event = { Down = { streak = 1, button = "Right" } },
mods = "SHIFT",
action = act.PasteFrom("Clipboard"),
},
{
event = { Down = { streak = 1, button = "Right" } },
mods = "CTRL|SHIFT",