Change occurrences of 'catched' to 'caught'.
This commit is contained in:
parent
ca777f3274
commit
e5d3ccf7b5
2 changed files with 3 additions and 3 deletions
|
|
@ -120,7 +120,7 @@ class Clone extends Container() {
|
|||
|
||||
getCloneTarget() {
|
||||
|
||||
// attempt to acquire a cloneTarget if 'widget-created' event has not been catched
|
||||
// attempt to acquire a cloneTarget if 'widget-created' event has not been caught
|
||||
// (the target might have been created before the clone itself)
|
||||
|
||||
var widgets = widgetManager.getWidgetById(this.getProp('widgetId'))
|
||||
|
|
@ -197,7 +197,7 @@ class Clone extends Container() {
|
|||
this.cloneTarget = target
|
||||
|
||||
// listen for cloneTarget's deletion
|
||||
// if it is just edited, its recreation will be catched by the global 'widget-created' event handler
|
||||
// if it is just edited, its recreation will be caught by the global 'widget-created' event handler
|
||||
this.cloneTarget.on('widget-removed', (e)=>{
|
||||
if (this.cloneTarget === e.widget) {
|
||||
this.unbindTarget()
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@ module.exports = function(options={}) {
|
|||
// already bound to alt+f4 on windows
|
||||
window.webContents.on('before-input-event', (e, input)=>{
|
||||
// using before-input-event because electron-localshortcut
|
||||
// gets azerty keyboards wrong (ctrl + z would also be catched)
|
||||
// gets azerty keyboards wrong (ctrl + z would also be caught)
|
||||
if ((input.key === 'w' || input.key === 'W') && input.control && input.type === 'keyDown') {
|
||||
window.close()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue