Keynav moment

This commit is contained in:
2023-01-11 22:30:14 -05:00
parent 80c0a6be71
commit 519e0b9c6b
9 changed files with 98 additions and 18 deletions

View File

@@ -20,6 +20,7 @@ var buttonCodeTable = map[xproto.Keysym] tomo.Key {
0xFF7F: tomo.KeyNumLock,
0xFF08: tomo.KeyBackspace,
0xFF09: tomo.KeyTab,
0xFE20: tomo.KeyTab,
0xFF0D: tomo.KeyEnter,
0xFF1B: tomo.KeyEscape,

View File

@@ -82,7 +82,7 @@ func (window *Window) handleKeyPress (
window.advanceSelectionInChild(direction)
}
} else {
window.child.Handle(event)
window.child.Handle(keyDownEvent)
}
}

View File

@@ -243,8 +243,9 @@ func (window *Window) childMinimumSizeChangeCallback (width, height int) {
}
}
func (window *Window) childSelectionRequestCallback () {
func (window *Window) childSelectionRequestCallback () (granted bool) {
window.child.Handle(tomo.EventSelect { })
return true
}
func (window *Window) pushRegion (region image.Rectangle) {