invisal / libsql-studio

A lightweight LibSQL/rqlite graphical client on your browser
https://libsqlstudio.com
MIT License
162 stars 13 forks source link

fix(gui): stop safari from opening the native menu #89

Closed rin-yato closed 2 months ago

rin-yato commented 2 months ago

This PR change the cancelable: false to cancelable: true in the context menu MouseEvent.

This allow the event to be prevented, e.g. e.preventDefault() https://developer.mozilla.org/en-US/docs/Web/API/Event/cancelable

https://github.com/invisal/libsql-studio/assets/106462074/1806718d-6559-4962-ba57-e77d2cbcdc06

closes #85

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments | Name | Status | Preview | Updated (UTC) | | :--- | :----- | :------ | :------ | | **libsql-studio-preview** | ⬜️ Ignored ([Inspect](https://vercel.com/invisals-projects/libsql-studio-preview/Fpsv8GPf9Hju7QFAC5Qj2s5Eseg4)) | | Apr 26, 2024 1:41pm | | **libsql-viewer** | ⬜️ Ignored ([Inspect](https://vercel.com/invisals-projects/libsql-viewer/BoGSGPpdREj6bom8kdJTjGx8UQ49)) | | Apr 26, 2024 1:41pm |
invisal commented 2 months ago

Super!