[gnome-shell] windowManager: Add bottom edge drag gesture to show OSK
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] windowManager: Add bottom edge drag gesture to show OSK
- Date: Sun, 12 Mar 2017 16:48:26 +0000 (UTC)
commit 3a6b41495a1e0a4d9347f3b2f72b032f8cb87a00
Author: Jan-Michael Brummer <jan brummer tabos org>
Date: Sun Feb 26 23:48:25 2017 +0100
windowManager: Add bottom edge drag gesture to show OSK
Adding a way to manually activate the OSK, in cases where it does not pop up
automatically or has been closed by the user.
https://bugzilla.gnome.org/show_bug.cgi?id=757712
js/ui/windowManager.js | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js
index 3d0de97..43871fb 100644
--- a/js/ui/windowManager.js
+++ b/js/ui/windowManager.js
@@ -18,6 +18,7 @@ const ModalDialog = imports.ui.modalDialog;
const Tweener = imports.ui.tweener;
const WindowMenu = imports.ui.windowMenu;
const PadOsd = imports.ui.padOsd;
+const EdgeDragAction = imports.ui.edgeDragAction;
const SHELL_KEYBINDINGS_SCHEMA = 'org.gnome.shell.keybindings';
const MINIMIZE_WINDOW_ANIMATION_TIME = 0.2;
@@ -996,6 +997,12 @@ const WindowManager = new Lang.Class({
gesture = new AppSwitchAction();
gesture.connect('activated', Lang.bind(this, this._switchApp));
global.stage.add_action(gesture);
+
+ gesture = new EdgeDragAction.EdgeDragAction(St.Side.BOTTOM, Shell.ActionMode.ALL);
+ gesture.connect('activated', Lang.bind(this, function() {
+ Main.keyboard.show(Main.layoutManager.bottomIndex);
+ }));
+ global.stage.add_action(gesture);
},
_showPadOsd: function (display, device, settings, imagePath, editionMode, monitorIndex) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]