mirror of
https://github.com/misterunknown/ifm.git
synced 2025-08-11 02:24:00 +02:00
apply option on change
This commit is contained in:
@@ -557,11 +557,8 @@ function IFM(params) {
|
|||||||
aceSession.setOption( 'useSoftTabs', e.srcElement.checked );
|
aceSession.setOption( 'useSoftTabs', e.srcElement.checked );
|
||||||
});
|
});
|
||||||
if( el = content.querySelector("#editor-tabsize" )) {
|
if( el = content.querySelector("#editor-tabsize" )) {
|
||||||
el.addEventListener( 'keydown', function( e ) {
|
el.addEventListener( 'change', function( e ) {
|
||||||
if( e.key == 'Enter' ) {
|
aceSession.setOption( 'tabSize', e.srcElement.value );
|
||||||
e.preventDefault();
|
|
||||||
aceSession.setOption( 'tabSize', e.srcElement.value );
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if( el = content.querySelector("#editor-syntax" ))
|
if( el = content.querySelector("#editor-syntax" ))
|
||||||
|
Reference in New Issue
Block a user