![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@rabby-wallet/electron-chrome-context-menu
Advanced tools
Chrome context menu for Electron browsers
Chrome context menu for Electron browsers
Building a modern web browser requires including many features users have grown accustomed to. Context menus are a small, but noticeable feature when done improperly.
This module aims to provide a context menu with close to feature parity to that of Google Chrome.
npm install electron-chrome-context-menu
// ES imports
import buildChromeContextMenu from 'electron-chrome-context-menu'
// CommonJS
const buildChromeContextMenu = require('electron-chrome-context-menu').default
const { app } = require('electron')
app.on('web-contents-created', (event, webContents) => {
webContents.on('context-menu', (e, params) => {
const menu = buildChromeContextMenu({
params,
webContents,
openLink: (url, disposition) => {
webContents.loadURL(url)
}
})
menu.popup()
})
})
For a complete example, see the
electron-browser-shell
project.
buildChromeContextMenu(options)
options
Object
params
Electron.ContextMenuParams - Context menu parameters emitted from the WebContents 'context-menu' event.webContents
Electron.WebContents - WebContents which emitted the 'context-menu' event.openLink(url, disposition, params)
- Handler for opening links.
url
Stringdisposition
String - Can be default
, foreground-tab
, background-tab
, and new-window
.params
Electron.ContextMenuParamsextensionMenuItems
Electron.MenuItem[] (optional) - Collection of menu items for active web extensions.labels
Object (optional) - Labels used to create menu items. Replace this if localization is needed.MIT
FAQs
Chrome context menu for Electron browsers
The npm package @rabby-wallet/electron-chrome-context-menu receives a total of 1 weekly downloads. As such, @rabby-wallet/electron-chrome-context-menu popularity was classified as not popular.
We found that @rabby-wallet/electron-chrome-context-menu demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.