1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-23 23:21:08 +03:00

allow using cmd-v to paste on linux

This is useful in a vmware vm on macos
This commit is contained in:
Wez Furlong 2019-05-29 12:54:13 -07:00
parent daac79fe41
commit bf719caaf3

View File

@ -113,11 +113,11 @@ impl<H: HostHelper> HostImpl<H> {
return Ok(true);
}
if cfg!(target_os = "macos") && mods == KeyModifiers::SUPER && key == KeyCode::Char('c') {
if mods == KeyModifiers::SUPER && key == KeyCode::Char('c') {
// Nominally copy, but that is implicit, so NOP
return Ok(true);
}
if (cfg!(target_os = "macos") && mods == KeyModifiers::SUPER && key == KeyCode::Char('v'))
if (mods == KeyModifiers::SUPER && key == KeyCode::Char('v'))
|| (mods == KeyModifiers::SHIFT && key == KeyCode::Insert)
{
let text = self.get_clipboard()?;