Skip to content

Instantly share code, notes, and snippets.

@wplit
Last active June 25, 2024 17:40
Show Gist options
  • Save wplit/3026f3b98c048ed466d16da5d7d61d62 to your computer and use it in GitHub Desktop.
Save wplit/3026f3b98c048ed466d16da5d7d61d62 to your computer and use it in GitHub Desktop.
prevent tab moved on a + d keys
jQuery(document).ready(($) => {
$('#%%ELEMENT_ID%% .oxy-dynamic-tabs_panel-group').on('keydown', (e) => {
if ( 65 === e.keyCode || 68 === e.keyCode ) {
e.stopPropagation()
}
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment