kopia lustrzana https://github.com/c9/core
workaround for broken test
rodzic
6184b3de78
commit
d76c57b79e
|
@ -640,6 +640,13 @@ Editor.$uid = 0;
|
|||
* Brings the current `textInput` into focus.
|
||||
**/
|
||||
this.focus = function() {
|
||||
// Safari needs the timeout
|
||||
// iOS and Firefox need it called immediately
|
||||
// to be on the save side we do both
|
||||
var _self = this;
|
||||
setTimeout(function() {
|
||||
_self.textInput.focus();
|
||||
});
|
||||
this.textInput.focus();
|
||||
};
|
||||
|
||||
|
|
|
@ -211,7 +211,7 @@ var Selection = function(session) {
|
|||
* Selects all the text in the document.
|
||||
**/
|
||||
this.selectAll = function() {
|
||||
this.anchor.setPosition(0, 0);
|
||||
this.setSelectionAnchor(0, 0);
|
||||
this.cursor.setPosition(Number.MAX_VALUE, Number.MAX_VALUE);
|
||||
};
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue