Skip to content

Commit

Permalink
No shortcuts in contenteditable (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidMStraub committed Aug 1, 2022
1 parent b8f3942 commit 1661b27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GrampsJs.js
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ export class GrampsJs extends LitElement {

_handleKey (e) {
const target = e.composedPath()[0]
if (['input', 'textarea', 'select', 'option', 'mwc-list-item'].includes(target.tagName.toLowerCase())) {
if (['input', 'textarea', 'select', 'option', 'mwc-list-item'].includes(target.tagName.toLowerCase()) || target.getAttribute('contenteditable')) {
return null
}
if (this._showShortcuts) {
Expand Down

0 comments on commit 1661b27

Please sign in to comment.