Browse Source

Merge pull request #2 from acalatrava/master

add mobile
pull/126/head
Cian Butler 8 years ago
committed by GitHub
parent
commit
b7fc05acd6
  1. 16
      public/wetty/hterm_all.js

16
public/wetty/hterm_all.js

@ -8375,6 +8375,10 @@ hterm.ScrollPort.prototype.decorate = function(div) {
// from screen.js. I need to pick a better name for one of them to avoid // from screen.js. I need to pick a better name for one of them to avoid
// the collision. // the collision.
this.screen_ = doc.createElement('x-screen'); this.screen_ = doc.createElement('x-screen');
this.screen_.setAttribute('contenteditable', 'true');
this.screen_.setAttribute('spellcheck', 'false');
this.screen_.setAttribute('autocorrect', 'false');
this.screen_.setAttribute('autocomplete', 'false');
this.screen_.setAttribute('role', 'textbox'); this.screen_.setAttribute('role', 'textbox');
this.screen_.setAttribute('tabindex', '-1'); this.screen_.setAttribute('tabindex', '-1');
this.screen_.style.cssText = ( this.screen_.style.cssText = (
@ -8525,7 +8529,7 @@ hterm.ScrollPort.prototype.getForegroundColor = function() {
}; };
hterm.ScrollPort.prototype.setForegroundColor = function(color) { hterm.ScrollPort.prototype.setForegroundColor = function(color) {
this.screen_.style.color = color; //this.screen_.style.color = color;
}; };
hterm.ScrollPort.prototype.getBackgroundColor = function() { hterm.ScrollPort.prototype.getBackgroundColor = function() {
@ -12825,14 +12829,17 @@ hterm.TextAttributes.prototype.isDefault = function() {
* attributes. * attributes.
*/ */
hterm.TextAttributes.prototype.createContainer = function(opt_textContent) { hterm.TextAttributes.prototype.createContainer = function(opt_textContent) {
if (this.isDefault()) //if (this.isDefault())
return this.document_.createTextNode(opt_textContent); // return this.document_.createTextNode(opt_textContent);
var span = this.document_.createElement('span'); var span = this.document_.createElement('span');
var style = span.style; var style = span.style;
if (this.foreground != this.DEFAULT_COLOR) if (this.foreground != this.DEFAULT_COLOR) {
style.color = this.foreground; style.color = this.foreground;
} else {
style.color = this.defaultForeground;
}
if (this.background != this.DEFAULT_COLOR) if (this.background != this.DEFAULT_COLOR)
style.backgroundColor = this.background; style.backgroundColor = this.background;
@ -12893,6 +12900,7 @@ hterm.TextAttributes.prototype.createContainer = function(opt_textContent) {
* this attributes instance. * this attributes instance.
*/ */
hterm.TextAttributes.prototype.matchesContainer = function(obj) { hterm.TextAttributes.prototype.matchesContainer = function(obj) {
return false;
if (typeof obj == 'string' || obj.nodeType == 3) if (typeof obj == 'string' || obj.nodeType == 3)
return this.isDefault(); return this.isDefault();

Loading…
Cancel
Save