Reverting previous change since it has the unwanted side-effect of making link pulldowns stay open too long.
This commit is contained in:
parent
57c456d839
commit
7634393431
|
@ -167,7 +167,7 @@ Editor.prototype.finish_init = function () {
|
||||||
if ( this.init_focus )
|
if ( this.init_focus )
|
||||||
this.focus();
|
this.focus();
|
||||||
|
|
||||||
signal( this, "init_complete" );
|
signal( self, "init_complete" );
|
||||||
}
|
}
|
||||||
|
|
||||||
Editor.prototype.highlight = function ( scroll ) {
|
Editor.prototype.highlight = function ( scroll ) {
|
||||||
|
@ -244,9 +244,9 @@ Editor.prototype.key_pressed = function ( event ) {
|
||||||
Editor.prototype.key_released = function ( event ) {
|
Editor.prototype.key_released = function ( event ) {
|
||||||
this.resize();
|
this.resize();
|
||||||
|
|
||||||
// if non-alphabetic (a-z), non-space, non-ctrl keys are released, issue a state changed event
|
// if non-alphabetic (a-z), non-ctrl keys are released, issue a state changed event
|
||||||
var code = event.key().code;
|
var code = event.key().code;
|
||||||
if ( ( code >= 65 && code <= 90 ) || code == 32 || event.modifier().ctrl )
|
if ( ( code >= 65 && code <= 90 ) || event.modifier().ctrl )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
signal( this, "state_changed", this );
|
signal( this, "state_changed", this );
|
||||||
|
|
Reference in New Issue
Block a user