diff --git a/emperor/format.py b/emperor/format.py index c913aef9..35cccd1f 100755 --- a/emperor/format.py +++ b/emperor/format.py @@ -538,7 +538,7 @@ def format_emperor_html_footer_string(has_biplots=False, has_ellipses=False,
- +
diff --git a/emperor/support_files/emperor/js/emperor.js b/emperor/support_files/emperor/js/emperor.js index 40196be0..a70aa8fc 100644 --- a/emperor/support_files/emperor/js/emperor.js +++ b/emperor/support_files/emperor/js/emperor.js @@ -2002,6 +2002,13 @@ $(document).ready(function() { if (g_validAsciiCodes.indexOf(code)==-1) event.preventDefault(); }); + + // Disables the enter key in the search bar + $('#searchBox').keypress(function(event) { + if (event.keyCode == 13) { + event.preventDefault(); + } + }); init(); animate(); @@ -2277,5 +2284,4 @@ $(document).ready(function() { g_mainRenderer.render( g_mainScene, g_sceneCamera); } - -}); +}); \ No newline at end of file diff --git a/tests/test_format.py b/tests/test_format.py index ef20d44f..888d8da2 100755 --- a/tests/test_format.py +++ b/tests/test_format.py @@ -493,7 +493,7 @@ def test_format_emperor_html_footer_string(self):
- +
@@ -656,7 +656,7 @@ def test_format_emperor_html_footer_string(self):
- +
@@ -830,7 +830,7 @@ def test_format_emperor_html_footer_string(self):
- +
@@ -988,7 +988,7 @@ def test_format_emperor_html_footer_string(self):
- +
@@ -1150,7 +1150,7 @@ def test_format_emperor_html_footer_string(self):
- +