document code a bit more
This commit is contained in:
parent
5dbfff016e
commit
81b85994a1
@ -99,6 +99,7 @@ class TabData:
|
|||||||
Only used for QtWebKit.
|
Only used for QtWebKit.
|
||||||
pinned: Flag to pin the tab.
|
pinned: Flag to pin the tab.
|
||||||
fullscreen: Whether the tab has a video shown fullscreen currently.
|
fullscreen: Whether the tab has a video shown fullscreen currently.
|
||||||
|
input_mode: current input mode for the tab. (insert, passthrough, normal)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
keep_icon = attr.ib(False)
|
keep_icon = attr.ib(False)
|
||||||
|
@ -651,6 +651,7 @@ class TabbedBrowser(tabwidget.TabWidget):
|
|||||||
return
|
return
|
||||||
if self._now_focused and config.val.tabs.mode_on_change == 'restore':
|
if self._now_focused and config.val.tabs.mode_on_change == 'restore':
|
||||||
current_mode = modeman.instance(self._win_id).mode
|
current_mode = modeman.instance(self._win_id).mode
|
||||||
|
# only save insert & passthrough mode. otherwise default to normal
|
||||||
if not current_mode in (usertypes.KeyMode.insert,usertypes.KeyMode.passthrough):
|
if not current_mode in (usertypes.KeyMode.insert,usertypes.KeyMode.passthrough):
|
||||||
current_mode = usertypes.KeyMode.normal
|
current_mode = usertypes.KeyMode.normal
|
||||||
self._now_focused.data.input_mode = current_mode
|
self._now_focused.data.input_mode = current_mode
|
||||||
|
Loading…
Reference in New Issue
Block a user