Update condition.js

This commit is contained in:
jipexu
2022-06-24 09:42:31 +02:00
committed by GitHub
parent 361ad43ab5
commit e7a545233b

View File

@@ -238,8 +238,8 @@ export const shiftKeyOnly = function (mapBrowserEvent) {
};
/**
* Return `true` if the target element is not editable, i.e. not a `<input>`-,
* `<select>`-, `<textarea>`-element or `contentEditable` -attribut at true, `false` otherwise.
* Return `true` if the target element is not editable, i.e. not an `<input>`,
* `<select>`, or `<textarea>` element and no `contenteditable` attribut. `false` otherwise.
*
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Map browser event.
* @return {boolean} True only if the target element is not editable.