Opened 6 years ago

Closed 6 years ago

#2179 closed enhancement (fixed)

Ctrl + K for "save changes" in CSRF-window

Reported by: ramon.wenger Owned by: comvation
Priority: normal Milestone: unknown
Component: other(specify) Version: 3.1.1
Severity: normal Keywords:
Cc:

Description

Please add the following Javascript to the CSRF window. This code allows the user to dismiss the CSRF window with the key combination "Ctrl + K".

document.onkeydown = function(e){

var evtobj = window.event ? event : e;

on Ctrl + K click on "save changes"-button if (evtobj.keyCode == 75 && evtobj.ctrlKey){

if (evtobj.preventDefault) {

evtobj.preventDefault();

} else {

evtobj.returnValue = false;

}

document.getElementById('continue').click();

}

}

Change History (1)

comment:1 Changed 6 years ago by riesen

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.