[gnome-documents] main-window: toggle fullscreen with F11
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] main-window: toggle fullscreen with F11
- Date: Mon, 4 Jun 2012 17:12:39 +0000 (UTC)
commit 7c05f9b89d967f2372e3c87199332c907cd65058
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Fri Jun 1 16:11:35 2012 -0400
main-window: toggle fullscreen with F11
Also don't toggle it for Ctrl+F.
src/mainWindow.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index b66f4d0..8bfdb7b 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -169,7 +169,8 @@ const MainWindow = new Lang.Class({
let fullscreen = Global.modeController.getFullscreen();
let direction = this.window.get_direction();
- if (keyval == Gdk.KEY_f) {
+ if ((keyval == Gdk.KEY_f || keyval == Gdk.KEY_F11) &&
+ ((state & Gdk.ModifierType.CONTROL_MASK) == 0)) {
Global.modeController.toggleFullscreen();
return true;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]