Skip to content

Commit

Permalink
Improve voice over
Browse files Browse the repository at this point in the history
  • Loading branch information
yury committed Oct 14, 2019
1 parent 0d1fc48 commit ec2917a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 12 deletions.
4 changes: 2 additions & 2 deletions Blink/TermInput.m
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,8 @@ - (void)_configureLangSet
}

- (void)deviceWrite:(NSString *) input {
[_device write:input];
[_device.view displayInput:input];
[_device.view displayInput: input];
[_device write: input];
}

- (void)textStorage:(NSTextStorage *)textStorage
Expand Down
4 changes: 2 additions & 2 deletions Resources/hterm_all.min.js

Large diffs are not rendered by default.

7 changes: 0 additions & 7 deletions Resources/hterm_all.patches.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,6 @@ hterm.Terminal.prototype.overlaySize = function() {};

hterm.Terminal.prototype.onMouse_ = function() {};

var _assertiveAnnounce = hterm.AccessibilityReader.prototype.assertiveAnnounce;
hterm.AccessibilityReader.prototype.assertiveAnnounce = function(e) {
if (e) {
_assertiveAnnounce.call(this, e);
}
}

hterm.Terminal.prototype.setCursorVisible = function(state) {
this.options_.cursorVisible = state;

Expand Down
4 changes: 3 additions & 1 deletion Resources/term.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ function term_processKB(str) {
}

function term_displayInput(str) {
t.accessibilityReader_.hasUserGesture = true;
if (str) {
window.KeystrokeVisualizer.processInput(str);
}
Expand All @@ -79,7 +80,8 @@ function term_setup() {
t.onTerminalReady = function() {
term_setAutoCarriageReturn(true);
t.setCursorVisible(true);

t.setAccessibilityEnabled(true);

t.io.onTerminalResize = function(cols, rows) {
_postMessage('sigwinch', {cols, rows});
t.prompt.resize();
Expand Down

0 comments on commit ec2917a

Please sign in to comment.