mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Make the event palette an overlay.
This commit is contained in:
@@ -14,7 +14,7 @@ describe "EventPalette", ->
|
||||
rootView.remove()
|
||||
|
||||
describe "when shown", ->
|
||||
ffit "shows a list of all valid events for the previously focused element", ->
|
||||
it "shows a list of all valid events for the previously focused element, then focuses the mini-editor", ->
|
||||
rootView.attachToDom().focus()
|
||||
rootView.trigger 'event-palette:show'
|
||||
for [event, description] in rootView.getActiveEditor().events()
|
||||
|
||||
@@ -18,9 +18,8 @@ class EventPalette extends View
|
||||
|
||||
attach: ->
|
||||
@previouslyFocusedElement = $(':focus')
|
||||
console.log @pre
|
||||
@populateEventList()
|
||||
@appendTo(@rootView.vertical)
|
||||
@appendTo(@rootView)
|
||||
@miniEditor.focus()
|
||||
|
||||
populateEventList: ->
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
.event-palette {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
.event-palette .event-list {
|
||||
max-height: 300px;
|
||||
color: white;
|
||||
|
||||
Reference in New Issue
Block a user