[gnome] Update extensions

This commit is contained in:
2024-02-06 01:31:09 -05:00
parent fb9f4f5824
commit 26aa549720
75 changed files with 13080 additions and 0 deletions

View File

@ -0,0 +1,28 @@
import * as KeyboardUI from 'resource:///org/gnome/shell/ui/keyboard.js';
function _modifiedLastDeviceIsTouchscreen() {
return false;
}
export default class BlockCaribou {
constructor() {
this._originalLastDeviceIsTouchscreen = null;
}
enable() {
this._originalLastDeviceIsTouchscreen = KeyboardUI.KeyboardManager.prototype._lastDeviceIsTouchscreen;
KeyboardUI.KeyboardManager.prototype._lastDeviceIsTouchscreen = _modifiedLastDeviceIsTouchscreen;
}
/*
* In the lock screen, the on-screen keyboard (Caribou) also pops up by
* default. So this extension requires the "unlock-dialog" session mode to
* block Caribou in lock screen.
*/
disable() {
if (this._originalLastDeviceIsTouchscreen !== null) {
KeyboardUI.KeyboardManager.prototype._lastDeviceIsTouchscreen = this._originalLastDeviceIsTouchscreen;
this._originalLastDeviceIsTouchscreen = null;
}
}
}