From dca1c3256c5050ebd3a51717365da0b76db1610b Mon Sep 17 00:00:00 2001 From: StephenMuya Date: Thu, 16 Jan 2025 20:30:48 +0300 Subject: [PATCH 1/2] auxclick, click, contentmenu events updated --- files/en-us/web/api/element/auxclick_event/index.md | 2 +- files/en-us/web/api/element/click_event/index.md | 2 +- files/en-us/web/api/element/contextmenu_event/index.md | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/files/en-us/web/api/element/auxclick_event/index.md b/files/en-us/web/api/element/auxclick_event/index.md index 6664cdf78183e39..05627dfc54463e9 100644 --- a/files/en-us/web/api/element/auxclick_event/index.md +++ b/files/en-us/web/api/element/auxclick_event/index.md @@ -29,7 +29,7 @@ A {{domxref("PointerEvent")}}. Inherits from {{domxref("MouseEvent")}}. {{InheritanceDiagram("PointerEvent")}} > [!NOTE] -> In earlier versions of the specification the event type for this event was a {{domxref("MouseEvent")}}, and this is still the type passed in Firefox and Safari. +> In earlier versions of the specification, the event type for this event was a {{domxref("MouseEvent")}}, check [browser compatibility](#browser_compatibility) for more information. ## Event properties diff --git a/files/en-us/web/api/element/click_event/index.md b/files/en-us/web/api/element/click_event/index.md index e1bdd209c5e687a..7e130fb049d887b 100644 --- a/files/en-us/web/api/element/click_event/index.md +++ b/files/en-us/web/api/element/click_event/index.md @@ -37,7 +37,7 @@ A {{domxref("PointerEvent")}}. Inherits from {{domxref("MouseEvent")}}. {{InheritanceDiagram("PointerEvent")}} > [!NOTE] -> In earlier versions of the specification the event type for this event was a {{domxref("MouseEvent")}}, and this is still the type passed in Firefox and Safari. +> In earlier versions of the specification, the event type for this event was a {{domxref("MouseEvent")}}, check [browser compatibility](#browser_compatibility) for more information. ## Event properties diff --git a/files/en-us/web/api/element/contextmenu_event/index.md b/files/en-us/web/api/element/contextmenu_event/index.md index 851c96190951549..a86f5e022706aef 100644 --- a/files/en-us/web/api/element/contextmenu_event/index.md +++ b/files/en-us/web/api/element/contextmenu_event/index.md @@ -34,7 +34,7 @@ A {{domxref("PointerEvent")}}. Inherits from {{domxref("MouseEvent")}}. {{InheritanceDiagram("PointerEvent")}} > [!NOTE] -> In earlier versions of the specification the event type for this event was a {{domxref("MouseEvent")}}, and this is still the type passed in Firefox and Safari. +> In earlier versions of the specification, the event type for this event was a {{domxref("MouseEvent")}}, check [browser compatibility](#browser_compatibility) for more information. ## Event properties @@ -72,7 +72,7 @@ _This interface inherits properties from {{domxref("MouseEvent")}} and {{domxref In this example, the default action of the `contextmenu` event is canceled using `preventDefault()` when the `contextmenu` event is fired at the first paragraph. As a result, the first paragraph will do nothing when right-clicked, while the second paragraph will show the standard context menu offered by your browser. > [!NOTE] -> In Firefox, if you hold down the Shift key while right-clicking, then the context menu is shown without the `contextmenu` event being fired. Therefore, canceling the event does not stop the context menu from being shown. +> In earlier versions of the specification, the event type for this event was a {{domxref("MouseEvent")}}, check [browser compatibility](#browser_compatibility) for more information. #### HTML From 2d1d937bb4703eb3c150720547cdf5a72d1bc713 Mon Sep 17 00:00:00 2001 From: Joshua Chen Date: Thu, 16 Jan 2025 15:08:21 -0500 Subject: [PATCH 2/2] Apply suggestions from code review --- files/en-us/web/api/element/auxclick_event/index.md | 2 +- files/en-us/web/api/element/click_event/index.md | 2 +- files/en-us/web/api/element/contextmenu_event/index.md | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/files/en-us/web/api/element/auxclick_event/index.md b/files/en-us/web/api/element/auxclick_event/index.md index 05627dfc54463e9..cea059f33c0a9f1 100644 --- a/files/en-us/web/api/element/auxclick_event/index.md +++ b/files/en-us/web/api/element/auxclick_event/index.md @@ -29,7 +29,7 @@ A {{domxref("PointerEvent")}}. Inherits from {{domxref("MouseEvent")}}. {{InheritanceDiagram("PointerEvent")}} > [!NOTE] -> In earlier versions of the specification, the event type for this event was a {{domxref("MouseEvent")}}, check [browser compatibility](#browser_compatibility) for more information. +> In earlier versions of the specification, the event type for this event was a {{domxref("MouseEvent")}}. Check [browser compatibility](#browser_compatibility) for more information. ## Event properties diff --git a/files/en-us/web/api/element/click_event/index.md b/files/en-us/web/api/element/click_event/index.md index 7e130fb049d887b..84dd872cd50adcb 100644 --- a/files/en-us/web/api/element/click_event/index.md +++ b/files/en-us/web/api/element/click_event/index.md @@ -37,7 +37,7 @@ A {{domxref("PointerEvent")}}. Inherits from {{domxref("MouseEvent")}}. {{InheritanceDiagram("PointerEvent")}} > [!NOTE] -> In earlier versions of the specification, the event type for this event was a {{domxref("MouseEvent")}}, check [browser compatibility](#browser_compatibility) for more information. +> In earlier versions of the specification, the event type for this event was a {{domxref("MouseEvent")}}. Check [browser compatibility](#browser_compatibility) for more information. ## Event properties diff --git a/files/en-us/web/api/element/contextmenu_event/index.md b/files/en-us/web/api/element/contextmenu_event/index.md index a86f5e022706aef..b61ed03bd58bc08 100644 --- a/files/en-us/web/api/element/contextmenu_event/index.md +++ b/files/en-us/web/api/element/contextmenu_event/index.md @@ -34,7 +34,7 @@ A {{domxref("PointerEvent")}}. Inherits from {{domxref("MouseEvent")}}. {{InheritanceDiagram("PointerEvent")}} > [!NOTE] -> In earlier versions of the specification, the event type for this event was a {{domxref("MouseEvent")}}, check [browser compatibility](#browser_compatibility) for more information. +> In earlier versions of the specification, the event type for this event was a {{domxref("MouseEvent")}}. Check [browser compatibility](#browser_compatibility) for more information. ## Event properties @@ -72,7 +72,7 @@ _This interface inherits properties from {{domxref("MouseEvent")}} and {{domxref In this example, the default action of the `contextmenu` event is canceled using `preventDefault()` when the `contextmenu` event is fired at the first paragraph. As a result, the first paragraph will do nothing when right-clicked, while the second paragraph will show the standard context menu offered by your browser. > [!NOTE] -> In earlier versions of the specification, the event type for this event was a {{domxref("MouseEvent")}}, check [browser compatibility](#browser_compatibility) for more information. +> In Firefox, if you hold down the Shift key while right-clicking, then the context menu is shown without the `contextmenu` event being fired. Therefore, canceling the event does not stop the context menu from being shown. #### HTML