Gtk.TextView::delete-from-cursor

function callback(text_view, type:Gtk.DeleteType, count:Number, ):void;

The ::delete-from-cursor signal is a <link linkend="keybinding-signals">keybinding signal</link> which gets emitted when the user initiates a text deletion.

If the type is Gtk.DeleteType.chars, GTK+ deletes the selection if there is one, otherwise it deletes the requested number of characters.

The default bindings for this signal are Delete for deleting a character, Ctrl-Delete for deleting a word and Ctrl-Backspace for deleting a word backwords.

text_view

instance of Gtk.TextView that is emitting the signal

type

the granularity of the deletion, as a Gtk.DeleteType

count

the number of type units to delete