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

@gedit/keyboard

Package Overview
Dependencies
Maintainers
3
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gedit/keyboard

The `@theia/keymaps` allows the user to reconfigure default keybindings with custom keymaps.\ By modifying the appropriate `keymaps.json`, the user can modify existing keybindings, or add keybindings to commands that do not yet have a keybinding associate

  • 0.1.55
  • npm
  • Socket score

Version published
Weekly downloads
60
Maintainers
3
Weekly downloads
 
Created
Source

Description

The @theia/keymaps allows the user to reconfigure default keybindings with custom keymaps.
By modifying the appropriate keymaps.json, the user can modify existing keybindings, or add keybindings to commands that do not yet have a keybinding associated to them.

Example of a valid keymaps.json file

[
    {
        "command": "quickCommand",
        "keybinding": "ctrl+shift+f4"
    }
]

where command is a unique command id and keybinding is a valid keybinding. There's also an optional context property that can be specified (which is also a unique string for a context id).

Supported Keys

For most keys you can directly use the name of the key i.e a, 3, /, -.

To use ctrl on Linux/Windows and cmd on OSX, use ctrlcmd.

You can use shift, ctrl, alt, meta, option (alt), command (meta), cmd (meta) as modifiers. Note that if you defined a custom shortcut with cmd, command or meta, the same keymaps file won't work on a Windows/Linux machine as this key doesn't have an equivalent.

You can also use the following strings for special keys: backspace, tab, enter, return, capslock, esc, escape, space, pageup, pagedown, end, home, left, up, right, down, ins, del and plus.

If unsure you can always look at the framework's supported keys

Key Sequences

Key sequences like: ctrl+x ctrl+a or ctrl+a b c are supported. With the following limitations:

  • If the key sequence exceeds 1 key chord it won't show in the electron menu.
  • If the key sequence exceeds 2 key chords it won't show in the command palette.

Additional Information

License

Trademark

"Theia" is a trademark of the Eclipse Foundation https://www.eclipse.org/theia

FAQs

Package last updated on 15 Dec 2021

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