Fixed "tablike"-behavior to include button- and a-Tags

This commit is contained in:
Dennis Marschner 2015-11-30 09:21:50 +01:00
parent ece0678bd2
commit 1f1004ddb2

View File

@ -2050,7 +2050,7 @@
var val = this.value, elementSelector, var val = this.value, elementSelector,
key = event.which; key = event.which;
if ([ENTER].indexOf(key) !== -1 && options.enterLikeTab) { if ([ENTER].indexOf(key) !== -1 && options.enterLikeTab) {
elementSelector = $("input:visible,textarea:visible"); elementSelector = $("input:visible,textarea:visible,button:visible,a:visible");
datetimepicker.trigger('close.xdsoft'); datetimepicker.trigger('close.xdsoft');
elementSelector.eq(elementSelector.index(this) + 1).focus(); elementSelector.eq(elementSelector.index(this) + 1).focus();
return false; return false;