Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8db89fc155 | |||
| 39e8a3541b | |||
| 47f5a734be | |||
| 1d5cdf480c |
@@ -14,7 +14,7 @@
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
UUID := simple-tiling@domoel
|
UUID := simple-tiling@domoel
|
||||||
VERSION := 7.5
|
VERSION := 7.6
|
||||||
EXTDIR := $(HOME)/.local/share/gnome-shell/extensions
|
EXTDIR := $(HOME)/.local/share/gnome-shell/extensions
|
||||||
|
|
||||||
COMMON_FILES := schemas exceptions.txt locale *.css README.md LICENSE
|
COMMON_FILES := schemas exceptions.txt locale *.css README.md LICENSE
|
||||||
|
|||||||
+2
-2
@@ -98,7 +98,7 @@ class InteractionHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_bind(key, handler) {
|
_bind(key, handler) {
|
||||||
global.display.add_keybinding(
|
Main.wm.addKeybinding(
|
||||||
key,
|
key,
|
||||||
this._settings,
|
this._settings,
|
||||||
Meta.KeyBindingFlags.NONE,
|
Meta.KeyBindingFlags.NONE,
|
||||||
@@ -108,7 +108,7 @@ class InteractionHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_bindAllShortcuts() { for (const [k,h] of Object.entries(KEYBINDINGS)) this._bind(k, h); }
|
_bindAllShortcuts() { for (const [k,h] of Object.entries(KEYBINDINGS)) this._bind(k, h); }
|
||||||
_unbindAllShortcuts(){ for (const k in KEYBINDINGS) global.display.remove_keybinding(k); }
|
_unbindAllShortcuts(){ for (const k in KEYBINDINGS) Main.wm.removeKeybinding(k); }
|
||||||
|
|
||||||
_onSettingsChanged() {
|
_onSettingsChanged() {
|
||||||
this._unbindAllShortcuts();
|
this._unbindAllShortcuts();
|
||||||
|
|||||||
+2
-2
@@ -101,7 +101,7 @@ class InteractionHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_bind(key, handler) {
|
_bind(key, handler) {
|
||||||
global.display.add_keybinding(
|
Main.wm.addKeybinding(
|
||||||
key,
|
key,
|
||||||
this._settings,
|
this._settings,
|
||||||
Meta.KeyBindingFlags.NONE,
|
Meta.KeyBindingFlags.NONE,
|
||||||
@@ -111,7 +111,7 @@ class InteractionHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_bindAllShortcuts() { for (const [k,h] of Object.entries(KEYBINDINGS)) this._bind(k, h); }
|
_bindAllShortcuts() { for (const [k,h] of Object.entries(KEYBINDINGS)) this._bind(k, h); }
|
||||||
_unbindAllShortcuts(){ for (const k in KEYBINDINGS) global.display.remove_keybinding(k); }
|
_unbindAllShortcuts(){ for (const k in KEYBINDINGS) Main.wm.removeKeybinding(k); }
|
||||||
|
|
||||||
_onSettingsChanged() {
|
_onSettingsChanged() {
|
||||||
this._unbindAllShortcuts();
|
this._unbindAllShortcuts();
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import GLib from 'gi://GLib';
|
|||||||
import Clutter from 'gi://Clutter';
|
import Clutter from 'gi://Clutter';
|
||||||
import { Extension } from 'resource:///org/gnome/shell/extensions/extension.js';
|
import { Extension } from 'resource:///org/gnome/shell/extensions/extension.js';
|
||||||
import * as Main from 'resource:///org/gnome/shell/ui/main.js';
|
import * as Main from 'resource:///org/gnome/shell/ui/main.js';
|
||||||
import * as Config from 'resource:///org/gnome/shell/misc/config.js';
|
import * as Config from 'resource:///org/gnome/shell/misc/config.js';
|
||||||
|
|
||||||
// ── CONST ────────────────────────────────────────────
|
// ── CONST ────────────────────────────────────────────
|
||||||
const WM_SCHEMA = 'org.gnome.desktop.wm.keybindings';
|
const WM_SCHEMA = 'org.gnome.desktop.wm.keybindings';
|
||||||
@@ -113,16 +113,17 @@ class InteractionHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_bind(key, handler) {
|
_bind(key, handler) {
|
||||||
global.display.add_keybinding(
|
Main.wm.addKeybinding(
|
||||||
key,
|
key,
|
||||||
this._settings,
|
this._settings,
|
||||||
Meta.KeyBindingFlags.NONE,
|
Meta.KeyBindingFlags.NONE,
|
||||||
|
Shell.ActionMode.NORMAL,
|
||||||
(..._args) => handler(this)
|
(..._args) => handler(this)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
_bindAllShortcuts() { for (const [k,h] of Object.entries(KEYBINDINGS)) this._bind(k, h); }
|
_bindAllShortcuts() { for (const [k,h] of Object.entries(KEYBINDINGS)) this._bind(k, h); }
|
||||||
_unbindAllShortcuts(){ for (const k in KEYBINDINGS) global.display.remove_keybinding(k); }
|
_unbindAllShortcuts(){ for (const k in KEYBINDINGS) Main.wm.removeKeybinding(k); }
|
||||||
|
|
||||||
_onSettingsChanged() {
|
_onSettingsChanged() {
|
||||||
this._unbindAllShortcuts();
|
this._unbindAllShortcuts();
|
||||||
|
|||||||
Reference in New Issue
Block a user