add Ctrl+(num) shortcuts for the navigation buttons
This commit is contained in:
@@ -123,6 +123,13 @@ func (b *BrowsingPane) EnableNavigationButtons() {
|
||||
}
|
||||
}
|
||||
|
||||
func (b *BrowsingPane) ActivateNavigationButton(num int) {
|
||||
if num < len(b.navBtnsContainer.Objects) {
|
||||
btn := b.navBtnsContainer.Objects[num].(*widget.Button)
|
||||
btn.OnTapped()
|
||||
}
|
||||
}
|
||||
|
||||
func (b *BrowsingPane) GetSearchBarIfAny() fyne.Focusable {
|
||||
if s, ok := b.curPage.(Searchable); ok {
|
||||
return s.SearchWidget()
|
||||
|
||||
Reference in New Issue
Block a user