Skip to content

Commit

Permalink
Fixed search keys F3 and CTRL+f by resetting window.nuNEW=0
Browse files Browse the repository at this point in the history
  • Loading branch information
apmuthu committed Dec 6, 2020
1 parent d3d869c commit edbf262
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions nub4fixes/CHANGELOG_nub4fixes.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
2020-12-06: Ap.Muthu Fixed search keys F3 and CTRL+f by resetting window.nuNEW=0
2020-12-06: Ap.Muthu Cloned nucommon.js for fixing CTRL key Up for search fix
2020-12-06: Ap.Muthu Fixed Label Umlaut in tcpdf_fonts.php
2020-12-06: Ap.Muthu Cloned tcpdf/include/tcpdf_fonts.php for label Unmlaut fix
Expand Down
13 changes: 9 additions & 4 deletions nub4fixes/nucommon.js
Original file line number Diff line number Diff line change
Expand Up @@ -530,11 +530,16 @@ function nuRunIt(t, email, type){
function nuBindCtrlEvents(){

var nuCtrlKeydownListener = function(e){

if(e.keyCode == 17) { //Ctrl
window.nuNEW = 1;

if (e.keyCode === 114 || (e.ctrlKey && e.keyCode === 70)) { // exclude search keys F3 and Ctrl + f
window.nuNEW = 0;
} else {
if (e.keyCode == 17) { //Ctrl
window.nuNEW = 1;
}

}

}

$(document).keydown(function(e) {
Expand Down

2 comments on commit edbf262

@apmuthu
Copy link
Owner Author

@apmuthu apmuthu commented on edbf262 Dec 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nuCtrlKeyupListener

@apmuthu
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.