diff --git a/dist/notie.js b/dist/notie.js
index 0b1d1f4..75c3683 100644
--- a/dist/notie.js
+++ b/dist/notie.js
@@ -199,12 +199,19 @@ var getTransition = function getTransition() {
};
var enterClicked = function enterClicked(event) {
- return event.keyCode === 13;
+ if (callKeyFunctions) {
+ return event.keyCode === 13;
+ }
+ return false;
};
var escapeClicked = function escapeClicked(event) {
- return event.keyCode === 27;
+ if (callKeyFunctions) {
+ return event.keyCode === 27;
+ }
+ return false;
};
+
var addToDocument = function addToDocument(element, position) {
element.classList.add(options.classes.container);
element.style[position] = '-10000px';
diff --git a/src/notie.js b/src/notie.js
index 03d1d27..bcb6833 100644
--- a/src/notie.js
+++ b/src/notie.js
@@ -668,4 +668,4 @@ export default {
date,
setOptions,
hideAlerts
-}
+}
\ No newline at end of file
diff --git a/test.html b/test.html
index 0b72a73..d243968 100644
--- a/test.html
+++ b/test.html
@@ -78,6 +78,7 @@
+