keyboardManager: Adapt to moved functions
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3189>
This commit is contained in:
parent
40a78ecaa6
commit
5d4054135e
@ -33,13 +33,13 @@ export function getKeyboardManager() {
|
|||||||
|
|
||||||
export function releaseKeyboard() {
|
export function releaseKeyboard() {
|
||||||
if (Main.modalCount > 0)
|
if (Main.modalCount > 0)
|
||||||
global.display.unfreeze_keyboard(global.get_current_time());
|
global.backend.unfreeze_keyboard(global.get_current_time());
|
||||||
else
|
else
|
||||||
global.display.ungrab_keyboard(global.get_current_time());
|
global.backend.ungrab_keyboard(global.get_current_time());
|
||||||
}
|
}
|
||||||
|
|
||||||
export function holdKeyboard() {
|
export function holdKeyboard() {
|
||||||
global.display.freeze_keyboard(global.get_current_time());
|
global.backend.freeze_keyboard(global.get_current_time());
|
||||||
}
|
}
|
||||||
|
|
||||||
class KeyboardManager {
|
class KeyboardManager {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user