1
0
mirror of https://github.com/misterunknown/ifm.git synced 2025-08-09 01:26:32 +02:00

apply option on change

This commit is contained in:
Dmytro Novash
2024-07-16 16:47:14 +03:00
parent 06ac9b5ce1
commit ad7cfbbcde

View File

@@ -557,11 +557,8 @@ function IFM(params) {
aceSession.setOption( 'useSoftTabs', e.srcElement.checked );
});
if( el = content.querySelector("#editor-tabsize" )) {
el.addEventListener( 'keydown', function( e ) {
if( e.key == 'Enter' ) {
e.preventDefault();
aceSession.setOption( 'tabSize', e.srcElement.value );
}
el.addEventListener( 'change', function( e ) {
aceSession.setOption( 'tabSize', e.srcElement.value );
});
}
if( el = content.querySelector("#editor-syntax" ))