Skip to content

Commit

Permalink
[SSE] Refactoring protected ranges (use space key)
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliaRadzhabova committed Feb 21, 2024
1 parent eed7a29 commit 3e12a22
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -465,8 +465,13 @@ define([
},

onKeyDown: function (lisvView, record, e) {
if (e.keyCode==Common.UI.Keys.DELETE)
if (e.keyCode===Common.UI.Keys.DELETE)
this.onDeleteUser();
else if (e.keyCode===Common.UI.Keys.SPACE) {
var rec = this.listUser.getSelectedRec(),
btn = rec && !rec.get('isCurrent') ? rec.get('btnEdit') : null;
btn && $('button', btn.cmpEl).click();
}
},

onDeleteUser: function(rec) {
Expand Down

0 comments on commit 3e12a22

Please sign in to comment.