Skip to content

Commit

Permalink
Merge pull request #200 from novashdima/master
Browse files Browse the repository at this point in the history
apply option on change
  • Loading branch information
misterunknown authored Jul 16, 2024
2 parents 06ac9b5 + ad7cfbb commit 75a1763
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/ifm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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" ))
Expand Down

0 comments on commit 75a1763

Please sign in to comment.