mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
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
1 changed files with 3 additions and 3 deletions
|
|
@ -33,13 +33,13 @@ export function getKeyboardManager() {
|
|||
|
||||
export function releaseKeyboard() {
|
||||
if (Main.modalCount > 0)
|
||||
global.display.unfreeze_keyboard(global.get_current_time());
|
||||
global.backend.unfreeze_keyboard(global.get_current_time());
|
||||
else
|
||||
global.display.ungrab_keyboard(global.get_current_time());
|
||||
global.backend.ungrab_keyboard(global.get_current_time());
|
||||
}
|
||||
|
||||
export function holdKeyboard() {
|
||||
global.display.freeze_keyboard(global.get_current_time());
|
||||
global.backend.freeze_keyboard(global.get_current_time());
|
||||
}
|
||||
|
||||
class KeyboardManager {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue