Skip to content

Commit

Permalink
Update event binding
Browse files Browse the repository at this point in the history
  • Loading branch information
iccole committed Jan 16, 2025
1 parent 8410e01 commit 541b3c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pn-site/js/guidesearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,13 +364,13 @@ $(document).ready(

if(betaOn){

$(this).keypress(function(event){ return convertCharToggle(this, true, event); });
$(this).keyup(function(event){ return convertStr( this, event ); });
$(this).on('keypress', function(event){ return convertCharToggle(this, true, event); });
$(this).on('keyup', function(event){ return convertStr( this, event ); });

}
else{

$(this).keyup(function(event){
$(this).on('keyup', function(event){
event.stopPropagation();
var val = $(this).val();
if(!colonFound && val.match(":")) {
Expand Down

0 comments on commit 541b3c2

Please sign in to comment.