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:
parent
daac79fe41
commit
bf719caaf3
@ -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()?;
|
||||
|
Loading…
Reference in New Issue
Block a user