Implemented fullscreen mode. Fix #385
This commit is contained in:
parent
4363db90c0
commit
19f75984e3
@ -243,6 +243,17 @@ class CommandDispatcher:
|
|||||||
"'previous'!")
|
"'previous'!")
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
@cmdutils.register(instance='command-dispatcher', name='fullscreen',
|
||||||
|
scope='window')
|
||||||
|
def full_screen(self):
|
||||||
|
"""Toggle fullscreen mode."""
|
||||||
|
main_window = objreg.get('main-window', scope='window',
|
||||||
|
window=self._win_id)
|
||||||
|
if main_window.isFullScreen():
|
||||||
|
main_window.showNormal()
|
||||||
|
else:
|
||||||
|
main_window.showFullScreen()
|
||||||
|
|
||||||
@cmdutils.register(instance='command-dispatcher', scope='window')
|
@cmdutils.register(instance='command-dispatcher', scope='window')
|
||||||
def tab_close(self, left=False, right=False, opposite=False,
|
def tab_close(self, left=False, right=False, opposite=False,
|
||||||
count: {'special': 'count'}=None):
|
count: {'special': 'count'}=None):
|
||||||
|
@ -946,6 +946,7 @@ KEY_DATA = collections.OrderedDict([
|
|||||||
('forward', ['L']),
|
('forward', ['L']),
|
||||||
('forward -t', ['tl']),
|
('forward -t', ['tl']),
|
||||||
('forward -w', ['wl']),
|
('forward -w', ['wl']),
|
||||||
|
('fullscreen', ['<F11>']),
|
||||||
('hint', ['f']),
|
('hint', ['f']),
|
||||||
('hint all tab', ['F']),
|
('hint all tab', ['F']),
|
||||||
('hint all window', ['wf']),
|
('hint all window', ['wf']),
|
||||||
|
Loading…
Reference in New Issue
Block a user