icecat: add release icecat-140.9.0-1gnu1 for ecne

This commit is contained in:
Ark74 2026-03-28 14:10:24 -06:00
parent 8eb1f1732f
commit a5f93cb214
1197 changed files with 30593 additions and 15344 deletions

View file

@ -586,11 +586,24 @@ class WidgetKeyboardEvent final : public WidgetInputEvent {
mEditCommandsForRichTextEditorInitialized = true;
}
/**
* Return true if this stores one or more edit commands for at least one
* editor type. This does not initialize them when they have not been
* initialized yet. Therefore, this returns just current status.
*/
[[nodiscard]] bool HasEditCommands() const {
return !mEditCommandsForSingleLineEditor.IsEmpty() ||
!mEditCommandsForMultiLineEditor.IsEmpty() ||
!mEditCommandsForRichTextEditor.IsEmpty();
}
/**
* EditCommandsConstRef() returns reference to edit commands for aType.
*/
const nsTArray<CommandInt>& EditCommandsConstRef(
NativeKeyBindingsType aType) const {
MOZ_ASSERT(!IsHandledInRemoteProcess(),
"Editor commands is not available on reply event");
return const_cast<WidgetKeyboardEvent*>(this)->EditCommandsRef(aType);
}