mirror of
https://github.com/HackPlan/atom-shell.git
synced 2026-04-29 04:05:37 +08:00
Update GlobalShortcut API design.
* Rename Shortcut API to GlobalShortcut for better suite. * Implement the new design interfaces. * Put the chromium related source code to the same directory as in chrome.
This commit is contained in:
5
atom/browser/api/lib/global-shortcut.coffee
Normal file
5
atom/browser/api/lib/global-shortcut.coffee
Normal file
@@ -0,0 +1,5 @@
|
||||
bindings = process.atomBinding 'global_shortcut'
|
||||
|
||||
globalShortcut = bindings.globalShortcut
|
||||
|
||||
module.exports = globalShortcut
|
||||
@@ -1,7 +0,0 @@
|
||||
EventEmitter = require('events').EventEmitter
|
||||
bindings = process.atomBinding 'shortcut'
|
||||
|
||||
Shortcut = bindings.Shortcut
|
||||
Shortcut::__proto__ = EventEmitter.prototype
|
||||
|
||||
module.exports = Shortcut
|
||||
Reference in New Issue
Block a user