mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
Make everything pointer like
This commit is contained in:
committed by
Kevin Sawicki
parent
2ba937289c
commit
60cc862031
@@ -50,13 +50,13 @@ class TouchBar extends EventEmitter {
|
||||
})
|
||||
}
|
||||
|
||||
replaceEscapeItem(item) {
|
||||
setEscapeItem(item) {
|
||||
if (!item) item = {}
|
||||
Object.keys(this.windows).forEach((windowID) => {
|
||||
const window = this.windows[windowID]
|
||||
window._setEscapeTouchBarItem(item)
|
||||
})
|
||||
this._escape = item;
|
||||
this._escape = item
|
||||
}
|
||||
|
||||
_addToWindow (window) {
|
||||
@@ -90,7 +90,7 @@ class TouchBar extends EventEmitter {
|
||||
}
|
||||
window.once('closed', removeListeners)
|
||||
this.windowListeners[id] = removeListeners
|
||||
this.windows[id] = window;
|
||||
this.windows[id] = window
|
||||
|
||||
window._setTouchBarItems(this.ordereredItems)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user