diff --git a/CHANGELOG.md b/CHANGELOG.md index a54397f5..169f6ed4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Add distribute method using Sling Content Distribution: [#39](https://github.com/orbinson/aem-groovy-console/issues/39) +### Fixed + +- Only insert service when searching after pressing enter when using arrow keys: [#43](https://github.com/orbinson/aem-groovy-console/issues/43) + ## [19.0.3] - 2023-02-21 ### Fixed diff --git a/README.md b/README.md index 4ed3f0f1..9a3370bb 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ project [aem-groovy-console](https://github.com/CID15/aem-groovy-console) ### Manual 1. Download the - console [aem-groovy-console-all](https://github.com/orbinson/aem-groovy-console/releases/download/18.0.0/aem-groovy-console-all-18.0.0.zip) + console [aem-groovy-console-all](https://github.com/orbinson/aem-groovy-console/releases/download/19.0.3/aem-groovy-console-all-19.0.3.zip) content package and install with [PackMgr](http://localhost:4502/crx/packmgr). For previous versions you can search on the [Maven Central repository](https://search.maven.org/search?q=a:aem-groovy-console). @@ -64,7 +64,7 @@ To deploy the Groovy Console as an embedded package you need to update your `pom be.orbinson.aem aem-groovy-console-all - 18.0.0 + 19.0.3 zip ``` diff --git a/docs/assets/screenshot.png b/docs/assets/screenshot.png index dad9486e..afc1a44c 100644 Binary files a/docs/assets/screenshot.png and b/docs/assets/screenshot.png differ diff --git a/ui.apps/src/main/content/jcr_root/apps/groovyconsole/clientlibs/js/services.js b/ui.apps/src/main/content/jcr_root/apps/groovyconsole/clientlibs/js/services.js index 8b37446a..71e4b062 100644 --- a/ui.apps/src/main/content/jcr_root/apps/groovyconsole/clientlibs/js/services.js +++ b/ui.apps/src/main/content/jcr_root/apps/groovyconsole/clientlibs/js/services.js @@ -7,11 +7,11 @@ $(function () { scriptEditor.navigateFileEnd(); - if (scriptEditor.getCursorPosition().column > 0 ) { + if (scriptEditor.getCursorPosition().column > 0) { scriptEditor.insert('\n\n'); } - if((event.keyCode === 13 || event.which === 13)) { + if ((event.keyCode === 13 || event.which === 13)) { scriptEditor.insert(declaration); } return '';