keyboard: Specify anchor when deleting characters via timeout
6e80f858c dropped the second cursor argument used as anchor when calling the delete function from the timeout. This was causing the early check that was trying to detect when deleting from the beginning of the text to fail, because anchor was now undefined. Fixes: 6e80f858c ("keyboard: Move backspace key handling to KeyboardController") Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7484 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3239>
This commit is contained in:
parent
881ec91370
commit
04fd3a4277
@ -2189,7 +2189,7 @@ class KeyboardController extends Signals.EventEmitter {
|
|||||||
}
|
}
|
||||||
this._surroundingUpdateTimeoutId =
|
this._surroundingUpdateTimeoutId =
|
||||||
GLib.timeout_add(GLib.PRIORITY_DEFAULT, KEY_RELEASE_TIMEOUT, () => {
|
GLib.timeout_add(GLib.PRIORITY_DEFAULT, KEY_RELEASE_TIMEOUT, () => {
|
||||||
func(text, cursor);
|
func(text, cursor, cursor);
|
||||||
this._surroundingUpdateTimeoutId = 0;
|
this._surroundingUpdateTimeoutId = 0;
|
||||||
return GLib.SOURCE_REMOVE;
|
return GLib.SOURCE_REMOVE;
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user