Skip to content

Dial pad: Clear entry on longpressing back button

Closes #185 (closed)

Currently crashes

Handy:ERROR:../src/hdy-keypad.c:112:insert_text_cb: assertion failed: (length == 1)
Bail out! Handy:ERROR:../src/hdy-keypad.c:112:insert_text_cb: assertion failed: (length == 1)

https://gitlab.gnome.org/GNOME/libhandy/-/blob/master/src/hdy-keypad.c#L112

I see two possible ways forward:

  • Adapt HdyKeypad to allow clearing the GtkEntry
  • Repeatedly remove a single character until GtkEntry is cleared (seems a bit hacky to me, could be complicated by the fact that the cursor is not necessarily at the end of the GtkEntry)

@alexander.mikhaylenko Any ideas?

Edited by Evangelos Ribeiro Tzaras

Merge request reports