Merge branch 'master' of https://github.com/oed/qutebrowser into oed-master

This commit is contained in:
Florian Bruhin 2014-12-29 21:58:51 +01:00
commit ad6065605a
2 changed files with 9 additions and 0 deletions

View File

@ -951,6 +951,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']),

View File

@ -305,6 +305,14 @@ class MainWindow(QWidget):
""" """
super().close() super().close()
@cmdutils.register(instance='main-window', scope='window')
def fullscreen(self):
"""Toggle fullscreen mode."""
if self.isFullScreen():
self.showNormal()
else:
self.showFullScreen()
def resizeEvent(self, e): def resizeEvent(self, e):
"""Extend resizewindow's resizeEvent to adjust completion. """Extend resizewindow's resizeEvent to adjust completion.