mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
eat the key bindings we want.
This commit is contained in:
@@ -2,5 +2,16 @@ App = require 'app'
|
||||
Window = require 'window'
|
||||
App.setActiveWindow new Window controller: WindowController
|
||||
|
||||
window.handleKeyEvent = (event) ->
|
||||
if event.keyCode == 50
|
||||
console.log("Got `")
|
||||
true
|
||||
else if (event.modifierFlags & OSX.NSCommandKeyMask) and event.keyCode == 12 # cmd and q pushed
|
||||
console.log("Cmd-Q")
|
||||
true
|
||||
else
|
||||
console.log(event.keyCode)
|
||||
false
|
||||
|
||||
require 'editor'
|
||||
require 'plugins'
|
||||
require 'plugins'
|
||||
|
||||
Reference in New Issue
Block a user