-
-
Notifications
You must be signed in to change notification settings - Fork 576
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
Need help for using SHIFT+Insert and Ctrl+V #537
Comments
You can use code like this: var flag = false;
function key(e, original) {
if (flag) {
return original();
} else {
return false;
}
}
var term = $('body').terminal({
toggle: function() {
flag = !flag;
}
}, {
completion: true,
keymap: {
'SHIFT+INSERT': key,
'CTRL+V': key
}
});
|
HI @jcubic , My problem is, i'm using same terminal inside two windows.
|
To answer your exact question you can disable keys, you should use https://codepen.io/jcubic/pen/MWWGQBQ?editors=0010 Tested on Windows 10+Chrome 78 I did those steps, I've logged to first terminal, waited for prompt, then logged into second one and pasted text into terminal that was ready. I've also tested without async function, using callback in login (there is issue that it don't pause while it was waiting for callback to be called) Maybe the problem is with your code, can you share your code? If you can reproduce on codepen please provide the steps. Or maybe you just found a way to have two terminals enabled in same time. |
Closing because of inactivity. If you still have issue please reopen or comment and I'll do this. |
I have question related to jQuery Terminal
Hi @jcubic ,
I have a situation where I need to enable SHIFT+Insert and CTRL+V on success of one condition only.
I disabled these two by using keymap and keydown. so if i want enable them by using settings, like
window.getTerm().settings().echoCommand=false, how to use these two events..?
The text was updated successfully, but these errors were encountered: