use generic enter key callback to handle key presses.

This commit is contained in:
DESKTOP-T0O5CDB\DESK-555BD
2025-02-19 16:08:15 -07:00
parent 95305402e6
commit 48248a4386
7 changed files with 11 additions and 11 deletions

View File

@@ -55,12 +55,6 @@ function performPasswordReset() {
});
}
function handlePasswordKeyPress(event) {
if (event.keyCode == 13) {
performLogin();
}
}
function remoteLogin() {
$.get('/Login/GetRemoteLoginLink', function (data) {
if (data) {

View File

@@ -1535,4 +1535,10 @@ function handleTableColumnDragEnd(tabName) {
if (isDragging) {
isDragging = false;
}
}
function callBackOnEnter(event, callBack) {
if (event.keyCode == 13) {
callBack();
}
}