mac: Implement global keyboard shortcut API.
This commit is contained in:
parent
476f545a67
commit
4b3bd9c3cc
9 changed files with 922 additions and 0 deletions
7
atom/browser/api/lib/shortcut.coffee
Normal file
7
atom/browser/api/lib/shortcut.coffee
Normal file
|
@ -0,0 +1,7 @@
|
|||
EventEmitter = require('events').EventEmitter
|
||||
bindings = process.atomBinding 'shortcut'
|
||||
|
||||
Shortcut = bindings.Shortcut
|
||||
Shortcut::__proto__ = EventEmitter.prototype
|
||||
|
||||
module.exports = Shortcut
|
Loading…
Add table
Add a link
Reference in a new issue