No issue - Replace use of deprecated GetPreventDefault in GTK menu bar

This commit is contained in:
FranklinDM 2022-12-04 14:54:40 +08:00 committed by roytam1
commit 704a1bcfab

View file

@ -35,7 +35,7 @@ using namespace mozilla;
static bool
ShouldHandleKeyEvent(nsIDOMEvent* aEvent) {
bool handled, trusted = false;
aEvent->GetPreventDefault(&handled);
aEvent->GetDefaultPrevented(&handled);
aEvent->GetIsTrusted(&trusted);
if (handled || !trusted) {