give widgets.TabBar default hotkeys

develop
Myk Taylor 2023-05-16 17:26:16 -07:00
parent 2a734b92f7
commit 899422aaf8
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
2 changed files with 5 additions and 3 deletions

@ -5113,7 +5113,9 @@ This widget implements a set of one or more tabs to allow navigation between gro
the width of the window and will continue rendering on the next line(s) if all tabs cannot fit on a single line.
:key: Specifies a keybinding that can be used to switch to the next tab.
:key_back: Specifies a keybinding that can be used to switch to the previous tab.
Defaults to ``CUSTOM_CTRL_T``.
:key_back: Specifies a keybinding that can be used to switch to the previous
tab. Defaults to ``CUSTOM_CTRL_Y``.
:labels: A table of strings; entry representing the label text for a single tab. The order of the entries
determines the order the tabs will appear in.
:on_select: Callback executed when a tab is selected. It receives the selected tab index as an argument. The provided function

@ -2241,8 +2241,8 @@ TabBar.ATTRS{
active_tab_pens=DEFAULT_ACTIVE_TAB_PENS,
inactive_tab_pens=DEFAULT_INACTIVE_TAB_PENS,
get_pens=DEFAULT_NIL,
key=DEFAULT_NIL,
key_back=DEFAULT_NIL,
key='CUSTOM_CTRL_T',
key_back='CUSTOM_CTRL_Y',
}
function TabBar:init()