mirror of
				https://github.com/searxng/searxng.git
				synced 2025-11-03 19:17:07 -05:00 
			
		
		
		
	Merge pull request #1226 from rndevfx/fix-vim-mode-on-firefox
Fix Vim mode on Firefox
This commit is contained in:
		
						commit
						b918b29f90
					
				@ -104,7 +104,7 @@ $(document).ready(function() {
 | 
			
		||||
        }
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    $(document).keyup(function(e) {
 | 
			
		||||
    $(document).keydown(function(e) {
 | 
			
		||||
        // check for modifiers so we don't break browser's hotkeys
 | 
			
		||||
        if (vimKeys.hasOwnProperty(e.keyCode)
 | 
			
		||||
            && !e.ctrlKey
 | 
			
		||||
@ -118,6 +118,7 @@ $(document).ready(function() {
 | 
			
		||||
                }
 | 
			
		||||
            } else {
 | 
			
		||||
                if (e.target === document.body) {
 | 
			
		||||
                    e.preventDefault();
 | 
			
		||||
                    vimKeys[e.keyCode].fun();
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user