mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-10 14:52:34 +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{}) {
|
drop.Emmiter.Once("cursor-enter", func(payload ...interface{}) {
|
||||||
|
//nolint
|
||||||
manager.ButtonDown(1)
|
manager.ButtonDown(1)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -35,6 +36,7 @@ func (manager *DesktopManagerCtx) DropFiles(x int, y int, files []string) bool {
|
||||||
time.Sleep(DROP_DELAY)
|
time.Sleep(DROP_DELAY)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//nolint
|
||||||
manager.ButtonUp(1)
|
manager.ButtonUp(1)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -43,6 +45,7 @@ func (manager *DesktopManagerCtx) DropFiles(x int, y int, files []string) bool {
|
||||||
finished <- payload[0].(bool)
|
finished <- payload[0].(bool)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
manager.ResetKeys()
|
||||||
go drop.OpenWindow(files)
|
go drop.OpenWindow(files)
|
||||||
|
|
||||||
select {
|
select {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue