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

Autoflow

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 21
    • 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: 6210
    • 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 »