mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
Fixing problems with alt key and special characters like å, ö and ä. (#201)
This commit is contained in:
parent
e85f1658ef
commit
3d7f6fa060
1 changed files with 4 additions and 1 deletions
|
|
@ -33,6 +33,9 @@ export default class Term extends Component {
|
|||
this.term.prefs_.set('color-palette-overrides', props.colors);
|
||||
this.term.prefs_.set('user-css', this.getStylesheet(props.customCSS));
|
||||
this.term.prefs_.set('scrollbar-visible', false);
|
||||
this.term.prefs_.set('receive-encoding', 'raw');
|
||||
this.term.prefs_.set('send-encoding', 'raw');
|
||||
this.term.prefs_.set('alt-sends-what', 'browser-key');
|
||||
|
||||
this.term.onTerminalReady = () => {
|
||||
const io = this.term.io.push();
|
||||
|
|
@ -74,7 +77,7 @@ export default class Term extends Component {
|
|||
|
||||
write (data) {
|
||||
requestAnimationFrame(() => {
|
||||
this.term.io.print(data);
|
||||
this.term.io.writeUTF8(data);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue