mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
reset keys before drop.
This commit is contained in:
parent
51d061e9aa
commit
0ead4bc8fd
@ -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…
Reference in New Issue
Block a user