fix: prevent soft keyboard appearance on touch devices - close #733

This commit is contained in:
Gabriel Saillard 2021-05-06 14:14:03 +02:00
parent 722cc9eac8
commit fd39b0b2d8
No known key found for this signature in database
GPG Key ID: 4F615B5FE436611A
3 changed files with 405 additions and 361 deletions

762
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -101,7 +101,7 @@
"dependencies": {
"clean-css": "5.1.2",
"electron": "^11.4.5",
"electron-builder": "^22.11.1",
"electron-builder": "22.10",
"electron-rebuild": "^2.3.5",
"mime-types": "^2.1.30",
"node-abi": "2.26.0",

View File

@ -143,6 +143,8 @@ class Terminal {
window.keyboard.keydownHandler(e);
return true;
});
// Prevent soft-keyboard on touch devices #733
document.querySelectorAll('.xterm-helper-textarea').forEach(textarea => textarea.setAttribute('readonly', 'readonly'))
this.term.focus();
this.Ipc.send("terminal_channel-"+this.port, "Renderer startup");