mirror of
https://github.com/Eugeny/tabby.git
synced 2025-10-05 14:34:54 +00:00
handle files dragged into the terminal
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Component, Inject, Input } from '@angular/core'
|
||||
import { Component, Inject, Input, HostListener } from '@angular/core'
|
||||
import { trigger, style, animate, transition, state } from '@angular/animations'
|
||||
|
||||
import { ElectronService } from '../services/electron.service'
|
||||
@@ -143,4 +143,13 @@ export class AppRootComponent {
|
||||
.sort((a: IToolbarButton, b: IToolbarButton) => (a.weight || 0) - (b.weight || 0))
|
||||
}
|
||||
|
||||
@HostListener('dragover')
|
||||
onDragOver () {
|
||||
return false
|
||||
}
|
||||
|
||||
@HostListener('drop')
|
||||
onDrop () {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user