allow using cmd-v to paste on linux

This is useful in a vmware vm on macos
This commit is contained in:
Wez Furlong committed 2019-06-02 07:44:22 -07:00
1 parent daac79fe41
commit bf719caaf3
1 file changed
+2 -2
+2 -2
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()?;