Skip to content

Commit

Permalink
navigating/selecting services fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Michiel Spiritus authored and Michiel Spiritus committed Jun 28, 2023
1 parent 7b41e2a commit d305e06
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,17 @@ $(function () {

scriptEditor.navigateFileEnd();

if (scriptEditor.getCursorPosition().column > 0) {
if (scriptEditor.getCursorPosition().column > 0 ) {
scriptEditor.insert('\n\n');
}

scriptEditor.insert(declaration);

if((event.keyCode === 13 || event.which === 13)) {
scriptEditor.insert(declaration);
}
return '';
}
});

$('#btn-group-services').fadeIn('fast');
});
});
});

0 comments on commit d305e06

Please sign in to comment.