Author Topic: Show native browser contextmenu, ie. on e.ctrlKey  (Read 91 times)

Autoflow

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 8
    • View Profile
Show native browser contextmenu, ie. on e.ctrlKey
« on: July 25, 2019, 08:14:11 pm »
Hi!
Is it possible to implement a preContext callback which makes it possible to
show the native browser context instead, ie. when ctrlKey is pressed?

Best regards,
Alexander

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 4076
    • View Profile
Re: Show native browser contextmenu, ie. on e.ctrlKey
« Reply #1 on: October 08, 2019, 10:16:26 am »
Alexander

It's already supported/ possible.

Browser context menu can be displayed instead of grid context menu when ctrl key is pressed by checking for evt.ctrlKey in contextMenu.items callback.

Code: [Select]
if( evt.ctrlKey ){
return;
}
« Last Edit: October 08, 2019, 10:24:12 am by paramvir »