Use .workspace rather than body for keybindings

This commit is contained in:
Matt Colyer
2013-11-19 16:57:10 -08:00
parent ce098e587f
commit 33538a5ed7
4 changed files with 6 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
'body.platform-darwin':
'.workspace-darwin':
# Apple specific
'meta-q': 'application:quit'
'meta-h': 'application:hide'
@@ -87,7 +87,7 @@
'meta-8': 'pane:show-item-8'
'meta-9': 'pane:show-item-9'
'.platform-darwin .editor':
'.workspace-darwin .editor':
# Apple Specific
'meta-backspace': 'editor:backspace-to-beginning-of-line'
'meta-delete': 'editor:backspace-to-beginning-of-line'

View File

@@ -1,4 +1,4 @@
'body.platform-win32':
'.workspace-win32':
# Atom Specific
'enter': 'core:confirm'
'escape': 'core:cancel'
@@ -50,6 +50,6 @@
'ctrl-k meta-left': 'window:focus-previous-pane'
'ctrl-k meta-right': 'window:focus-next-pane'
'.platform-win32 .editor':
'.workspace-win32 .editor':
# Windows specific
'ctrl-delete': 'editor:backspace-to-beginning-of-word'

View File

@@ -65,7 +65,7 @@ class Atom
# Private:
setBodyPlatformClass: ->
document.body.classList.add("platform-#{process.platform}")
document.body.classList.add("workspace-#{process.platform}")
getCurrentWindow: ->
remote.getCurrentWindow()

View File

@@ -22,6 +22,6 @@
}
</script>
</head>
<body tabindex="-1">
<body class="workspace" tabindex="-1">
</body>
</html>