You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by hn...@apache.org on 2018/08/31 10:46:40 UTC
[myfaces-tobago] branch master updated: TOBAGO-1923 Default button
is not executed on 'enter' if cursor is in date field
This is an automated email from the ASF dual-hosted git repository.
hnoeth pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git
The following commit(s) were added to refs/heads/master by this push:
new a035214 TOBAGO-1923 Default button is not executed on 'enter' if cursor is in date field
a035214 is described below
commit a03521430e314fc1ff34efe15b12692d1248ab1f
Author: Henning Noeth <hn...@apache.org>
AuthorDate: Fri Aug 31 12:46:24 2018 +0200
TOBAGO-1923 Default button is not executed on 'enter' if cursor is in date field
* keyevent 'enter' in date fields now works as intended
---
.../standard/tobago-bootstrap/_version/js/tobago-calendar.js | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/tobago-theme/tobago-theme-standard/src/main/resources/META-INF/resources/tobago/standard/tobago-bootstrap/_version/js/tobago-calendar.js b/tobago-theme/tobago-theme-standard/src/main/resources/META-INF/resources/tobago/standard/tobago-bootstrap/_version/js/tobago-calendar.js
index 3e04fee..9249326 100644
--- a/tobago-theme/tobago-theme-standard/src/main/resources/META-INF/resources/tobago/standard/tobago-bootstrap/_version/js/tobago-calendar.js
+++ b/tobago-theme/tobago-theme-standard/src/main/resources/META-INF/resources/tobago/standard/tobago-bootstrap/_version/js/tobago-calendar.js
@@ -39,6 +39,14 @@ Tobago.DateTime.init = function (elements) {
clear: 'fa fa-trash',
close: 'fa fa-times'
},
+ keyBinds: {
+ enter: function () {
+ $date.trigger(jQuery.Event("keypress", {
+ which: 13,
+ target: $date[0]
+ }));
+ }
+ },
widgetParent: '.tobago-page-menuStore'
};