mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
implement pin tab menu item
This commit is contained in:
parent
0c638026e3
commit
30a1872fa5
11 changed files with 55 additions and 0 deletions
|
|
@ -69,6 +69,14 @@ Browser::Browser(
|
|||
}
|
||||
);
|
||||
|
||||
const auto ACTION__TAB_PIN = add_action(
|
||||
"tab_pin",
|
||||
[this]
|
||||
{
|
||||
browserMain->tab_pin();
|
||||
}
|
||||
);
|
||||
|
||||
const auto ACTION__TAB_CLOSE = add_action(
|
||||
"tab_close",
|
||||
[this]
|
||||
|
|
@ -177,6 +185,7 @@ Browser::Browser(
|
|||
ACTION__SESSION_RESTORE,
|
||||
ACTION__SESSION_SAVE,
|
||||
ACTION__TAB_APPEND,
|
||||
ACTION__TAB_PIN,
|
||||
ACTION__TAB_CLOSE,
|
||||
ACTION__TAB_CLOSE_ALL,
|
||||
ACTION__TAB_PAGE_NAVIGATION_HISTORY_BACK,
|
||||
|
|
@ -218,6 +227,11 @@ Browser::Browser(
|
|||
"<Primary>t"
|
||||
);
|
||||
|
||||
APP->set_accel_for_action(
|
||||
"win.tab_pin",
|
||||
"<Primary>p"
|
||||
);
|
||||
|
||||
APP->set_accel_for_action(
|
||||
"win.tab_close",
|
||||
"<Primary>Escape"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue