Skip to content

Commit

Permalink
fix(admin-ui): Fix filter shortcut triggering from rich text component
Browse files Browse the repository at this point in the history
Fixes #2384
  • Loading branch information
michaelbromley committed Sep 7, 2023
1 parent 47e688d commit e6f95b3
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ export class DataTableFiltersComponent implements AfterViewInit {
@HostListener('window:keydown.f', ['$event'])
onFKeyPress(event: KeyboardEvent) {
if (event.target instanceof HTMLElement) {
if (event.target.tagName === 'INPUT' || event.target.tagName === 'TEXTAREA') {
if (
event.target.tagName === 'INPUT' ||
event.target.tagName === 'TEXTAREA' ||
event.target.classList.contains('vdr-prosemirror')
) {
return;
}
}
Expand Down

0 comments on commit e6f95b3

Please sign in to comment.