mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-04 03:42:40 +02:00
reset keys before drop.
This commit is contained in:
parent
51d061e9aa
commit
0ead4bc8fd
1 changed files with 3 additions and 0 deletions
|
@ -22,6 +22,7 @@ func (manager *DesktopManagerCtx) DropFiles(x int, y int, files []string) bool {
|
|||
})
|
||||
|
||||
drop.Emmiter.Once("cursor-enter", func(payload ...interface{}) {
|
||||
//nolint
|
||||
manager.ButtonDown(1)
|
||||
})
|
||||
|
||||
|
@ -35,6 +36,7 @@ func (manager *DesktopManagerCtx) DropFiles(x int, y int, files []string) bool {
|
|||
time.Sleep(DROP_DELAY)
|
||||
}
|
||||
|
||||
//nolint
|
||||
manager.ButtonUp(1)
|
||||
})
|
||||
|
||||
|
@ -43,6 +45,7 @@ func (manager *DesktopManagerCtx) DropFiles(x int, y int, files []string) bool {
|
|||
finished <- payload[0].(bool)
|
||||
})
|
||||
|
||||
manager.ResetKeys()
|
||||
go drop.OpenWindow(files)
|
||||
|
||||
select {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue