Skip to content

Commit

Permalink
fix keyboard_shortcuts (when on input)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xAF committed Jun 24, 2024
1 parent 73d6394 commit f1f4f60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion receiver/keyboard_shortcuts/keyboard_shortcuts.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ Plugins.keyboard_shortcuts.init = async function () {
// catch all key presses
$(document).on('keydown', function (e) {
// check if we are focusiing an input
var on_input = !!($('input:focus').length && $('input:focus')[0].type === 'text');
// var on_input = !!($('input:focus').length && $('input:focus')[0].type === 'text');
var on_input = !!($(':focus').is('input'));

// handle the global shortcuts, which will work even if an input is focused
// please use modifier keys (like ctrl and alt) always
Expand Down

0 comments on commit f1f4f60

Please sign in to comment.