How do I enable the browser's context menu for output field?
I enabled this option in Application > Basic eXtensions
But it works only for non read-only Input and textarea.
I tried to remove the highlighted code below in axuser.min.js but it didn't work.
I suspect that it might be somewhere in axdev.min.js but I still can't figure it out.
Context menu for output fields?
Moderator: jeanmichel
-
Fairdinkum
- Posts: 128
- Joined: 24 Jul 2017, 17:02
Re: Context menu for output fields?
Hi eduardorama,
Try the following.
(onApplicationStart)
HTH!
Regards,
Hide
Try the following.
(onApplicationStart)
Code: Select all
/*
* 右クリックメニュー(Context Menu)の有効化
* Enable the context menu
*/
document.addEventListener('contextmenu',function(e){e.stopPropagation();},true);
Regards,
Hide
-
eduardorama
- Posts: 13
- Joined: 19 Aug 2020, 11:26
Re: Context menu for output fields?
Hi Fairdinkum,
Thank you, it did work.
However, when I applied it onApplicationStart, it applied as well to edit mode/edit screen.
If it's possible, we want it only to work for the users and not affecting the designer's contextmenu (add user field /revert to default).
Thank you, it did work.
However, when I applied it onApplicationStart, it applied as well to edit mode/edit screen.
If it's possible, we want it only to work for the users and not affecting the designer's contextmenu (add user field /revert to default).
-
Fairdinkum
- Posts: 128
- Joined: 24 Jul 2017, 17:02
Re: Context menu for output fields?
Hi Eduardorama,
If that's the case, try the code below.
You might want to clear the cache before this testing.
I hope this will help.
Regards,
Hide
If that's the case, try the code below.
Code: Select all
/*
* 右クリックメニュー(Context Menu)の有効化
* Enable the context menu
*/
if ( !AXES.isDeveloper() ){
document.addEventListener('contextmenu',function(e){e.stopPropagation();},true);
}
I hope this will help.
Regards,
Hide
-
eduardorama
- Posts: 13
- Joined: 19 Aug 2020, 11:26
Re: Context menu for output fields?
Hi Fairdinkum,
That did the trick.
Thank you so much for the help.
That did the trick.
Thank you so much for the help.