TextBox supports copy/paste with keyboard commands

This commit is contained in:
2023-03-31 03:25:46 -04:00
parent ab78bc640d
commit c1e2bf46a6
8 changed files with 82 additions and 5 deletions

View File

@@ -204,6 +204,10 @@ func (element *Container) redoAll () {
}
}
func (element *Container) Window () tomo.Window {
return element.core.Window()
}
// NotifyMinimumSizeChange notifies the container that the minimum size of a
// child element has changed.
func (element *Container) NotifyMinimumSizeChange (child tomo.Element) {

View File

@@ -202,6 +202,10 @@ func (element *DocumentContainer) partition () {
}
}
func (element *DocumentContainer) Window () tomo.Window {
return element.core.Window()
}
// NotifyMinimumSizeChange notifies the container that the minimum size of a
// child element has changed.
func (element *DocumentContainer) NotifyMinimumSizeChange (child tomo.Element) {

View File

@@ -110,6 +110,10 @@ func (element *ScrollContainer) disownChild (child tomo.Scrollable) {
}
}
func (element *ScrollContainer) Window () tomo.Window {
return element.core.Window()
}
// NotifyMinimumSizeChange notifies the container that the minimum size of a
// child element has changed.
func (element *ScrollContainer) NotifyMinimumSizeChange (child tomo.Element) {