Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cmdenter

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cmdenter

Submit forms with Cmd + Enter.

  • 0.2.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by600%
Maintainers
1
Weekly downloads
 
Created
Source

CmdEnter.js

Submits any form with (Cmd | Win | Ctrl) + Enter.

Why?

Submits forms using Cmd + Enter (Mac) or Win + Ctrl (Windows) is a well known key combination that you may already use on Twitter, GitHub, Facebook, and another mayor sites.

It's great because is faster than move your mouse or hit tab to reach the submit button, you can save a few key strokes!.

Demo

See it in action!.

Installation

You can install it from npm

$ npm install cmdenter

Usage

Just create a new CmdEnter.js instance and you are ready to go

<script>
  new CmdEnter();
</script>

This will bind the cmd + enter key combination to all textarea elements on the page. Optionally you can specify a CSS selector as first parameter. Example:

<script>
  new CmdEnter('.comment')
  new CmdEnter('#description')
  new CmdEnter('form#register textarea')
</script>

Browser Support

  • All modern browsers

Made to you by

Fernando Montoya (FrontEnd developer)

@montogeek

License

MIT.

Keywords

FAQs

Package last updated on 13 Jun 2015

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc