windowManager: Move OSK gesture to KeyboardManager
It would be nice to get finer control over the keyboard slide gesture and animation. Move the gesture bits so they are together at keyboard.js. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1668>
This commit is contained in:

committed by
Marge Bot

parent
f52cafeb4a
commit
0580fe6eff
@ -932,16 +932,6 @@ var WindowManager = class {
|
||||
global.stage.add_action(appSwitchAction);
|
||||
|
||||
let mode = Shell.ActionMode.ALL & ~Shell.ActionMode.LOCK_SCREEN;
|
||||
let bottomDragAction = new EdgeDragAction.EdgeDragAction(St.Side.BOTTOM, mode);
|
||||
bottomDragAction.connect('activated', () => {
|
||||
Main.keyboard.open(Main.layoutManager.bottomIndex);
|
||||
});
|
||||
Main.layoutManager.connect('keyboard-visible-changed', (manager, visible) => {
|
||||
bottomDragAction.cancel();
|
||||
bottomDragAction.set_enabled(!visible);
|
||||
});
|
||||
global.stage.add_action(bottomDragAction);
|
||||
|
||||
let topDragAction = new EdgeDragAction.EdgeDragAction(St.Side.TOP, mode);
|
||||
topDragAction.connect('activated', () => {
|
||||
let currentWindow = global.display.focus_window;
|
||||
|
Reference in New Issue
Block a user