Giter VIP home page Giter VIP logo

electron-input-menu's Introduction

electron-input-menu

Greenkeeper badge

Context menu for electron input elements.

Travis Build Status NPM module NPM downloads

Installation

npm install --save electron-input-menu

Usage

This module expose a middleware for electron-contextmenu-middleware.

To use input context menu, you have to require this module and electron-contextmenu-middleware in renderer process and then mount this module as a middleware.

  const inputMenu = require('electron-input-menu');
  const context = require('electron-contextmenu-middleware');

  context.use(inputMenu);

  context.activate();

Keyboard shortcuts

electron-input-menu can also register shortcuts on DOM document object to handle copy, paste, cut, selectAll, undo and redo action. This is useful if your app doesn't provide an "Edit" menu that can handle this shortcuts.

To activate the shortcuts, call the registerShortcuts method in renderer process.

  const inputMenu = require('electron-input-menu');
  inputMenu.registerShortcuts();

Related projects

License

The MIT License (MIT)

Copyright (c) 2016 parro-it

electron-input-menu's People

Contributors

greenkeeper[bot] avatar kagami avatar parro-it avatar qgustavor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

electron-input-menu's Issues

Customization

Hey, cool plugin.

I wish there was a way to add menu items...

So like after paste, I'd like to add "Paste and Match Style". Then I would like to add Transformations and Speech menu(Mac).

Transformations(Upper case, lowercase, capitalize - change selected text) and Speech be in it's own separated area(Start and Stop Speaking).

Not sure if you'd be interested in adding some sot of API to tweak the menu. Right now it seems like it'd have to just make a fork and manually edit it - which not sure if I'd want to go that route 100% yet..

Can not install the library

I tried to install the electron-input-menu for 4 times. However, in the middle of the every installation, pc gives error and stops the installation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.