GTK+ 4: knowing the action/event at the origin of a text insertion/deletion?
- Date: Fri, 7 Jul 2017 16:06:03 +0200
- From: Sébastien Wilmet <swilmet@xxxxxxxxx>
- Subject: GTK+ 4: knowing the action/event at the origin of a text insertion/deletion?
With the plans for GTK+ 4, I wonder if it'll solve the following
Knowing where does a text insertion/deletion come from. In GtkTextView
and GtkEntry. Is it a key press? Is it a cut/paste/…? Is it done
Because currently with GTK+ 3 there are heuristics in GtkSourceView (for
the undo/redo) and gspell (to not underline the word currently typed) to
know whether a text insertion/deletion is a simple key press. If the
inserted/deleted text is only one character at the cursor position, it
assumes that it was a key press.
For example in GtkSourceView for the undo/redo:
But heuristics are not ideal of course. Will the input handling rework
in GTK+ 4 support that use-case?
gtk-devel-list mailing list