mirror of
https://github.com/GitSquared/edex-ui.git
synced 2024-09-21 10:37:29 +00:00
fix: prevent soft keyboard appearance on touch devices - close #733
This commit is contained in:
parent
722cc9eac8
commit
fd39b0b2d8
762
package-lock.json
generated
762
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -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",
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user