EventKey.string_

Get string_ field.

  1. string string_ [@property getter]
    class EventKey
    @property
    string
    string_
    ()
  2. string string_ [@property setter]

Return Value

Type: string

a string containing an approximation of the text that would result from this keypress. The only correct way to handle text input of text is using input methods (see #GtkIMContext), so this field is deprecated and should never be used. (gdk.global.unicodeToKeyval provides a non-deprecated way of getting an approximate translation for a key.) The string is encoded in the encoding of the current locale (Note: this for backwards compatibility: strings in GTK+ and GDK are typically in UTF-8.) and NUL-terminated. In some cases, the translation of the key code will be a single NUL byte, in which case looking at @length is necessary to distinguish it from the an empty translation.