Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

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

[功能建议] Linux的Web终端添加支持Ctrl+C复制 #3111

Open
502647092 opened this issue Aug 13, 2019 · 3 comments

Comments

@502647092
Copy link

commented Aug 13, 2019

[简述你的问题]
希望能给终端添加Ctrl+C和Ctrl+V的支持

使用版本

1.5.1

问题复现步骤
具体表现[截图可能会更好些,最好能截全]
其他

[注:] 完成后请关闭 issue

@502647092

This comment has been minimized.

Copy link
Author

commented Aug 13, 2019

这是示例代码 可以的话 麻烦支持一下

term.attachCustomKeyEventHandler(e => {
    if (e.ctrlKey && e.key == 'c' && term.hasSelection()) {
        return false;
    }
    if (e.ctrlKey && e.key == 'v') {
        return false;
    }
    return true;
})

@shyp88

This comment has been minimized.

Copy link

commented Aug 14, 2019

ctrl + c 本来是结束命令的快捷键,你这个如果变成复制,不是没法结束命令了?

@502647092

This comment has been minimized.

Copy link
Author

commented Aug 14, 2019

@shyp88 不会 只有在选择内容的时候才会复制 不然就是默认操作

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.