morethanwords / tweb

Telegram Web K, GPL v3
https://web.telegram.org/k/
GNU General Public License v3.0
1.87k stars 599 forks source link

[BUG] Right click triggers browser's context menu #7

Closed nkeor closed 3 years ago

nkeor commented 3 years ago

Describe the bug When right-clicking any element to trigger WebK's context menu, the browser's context menu pops up on top, making it impossible to use WebK's context menu. Upon left-clicking off the browser's menu, it disappears, thus making WebK's menu available.

To Reproduce Steps to reproduce the behavior:

  1. Right-click on any message or chat
  2. Both WebK's and browser's context menu pop up
  3. Left-click outside browser's menu
  4. WebK's menu is available

Expected behavior Right-clicking chats or messages trigger only WebK's context menu

Screenshots 2021-04-28-190749_screenshot_blurred 2021-04-28-190755_screenshot_blurred

Desktop:

morethanwords commented 3 years ago

Seems like it's a linux-only issue. Please provide more details about your OS.

nkeor commented 3 years ago

Up-to-date Manjaro, with the LibreWolf 88 browser (based on Firefox). Can be reproduced in Firefox 88 too.

nkeor commented 3 years ago

Correction: This issue isn't observed on FF 88. Will file an issue on LibreWolf's tracker.

EDIT: The fix is to set dom.event.contextmenu.enabled to true, which is set by default to false in LibreWolf. librewolf/windows#36