Can now tab/shift-tab when suggest_pulldown is "open" but invisible.
This commit is contained in:
parent
7e519a202f
commit
f5f54738f3
|
@ -1004,7 +1004,7 @@ Wiki.prototype.editor_key_pressed = function ( editor, event ) {
|
||||||
} else if ( event.modifier().shift && code == 9 ) {
|
} else if ( event.modifier().shift && code == 9 ) {
|
||||||
// ignore shift-tab here if a Suggest_pulldown is open
|
// ignore shift-tab here if a Suggest_pulldown is open
|
||||||
var link = editor.find_link_at_cursor();
|
var link = editor.find_link_at_cursor();
|
||||||
if ( link && link.pulldown && link.pulldown.update_suggestions )
|
if ( link && link.pulldown && link.pulldown.visible && link.pulldown.visible() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
editor.exec_command( "outdent" );
|
editor.exec_command( "outdent" );
|
||||||
|
@ -1013,7 +1013,7 @@ Wiki.prototype.editor_key_pressed = function ( editor, event ) {
|
||||||
} else if ( code == 9 ) {
|
} else if ( code == 9 ) {
|
||||||
// ignore tab here if a Suggest_pulldown is open
|
// ignore tab here if a Suggest_pulldown is open
|
||||||
var link = editor.find_link_at_cursor();
|
var link = editor.find_link_at_cursor();
|
||||||
if ( link && link.pulldown && link.pulldown.update_suggestions )
|
if ( link && link.pulldown && link.pulldown.visible && link.pulldown.visible() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
editor.exec_command( "indent" );
|
editor.exec_command( "indent" );
|
||||||
|
@ -3651,6 +3651,10 @@ Suggest_pulldown.prototype.something_selected = function () {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Suggest_pulldown.prototype.visible = function () {
|
||||||
|
return !hasElementClass( this.div, "invisible" );
|
||||||
|
}
|
||||||
|
|
||||||
Suggest_pulldown.prototype.shutdown = function () {
|
Suggest_pulldown.prototype.shutdown = function () {
|
||||||
Pulldown.prototype.shutdown.call( this );
|
Pulldown.prototype.shutdown.call( this );
|
||||||
|
|
||||||
|
|
Reference in New Issue