Use the right widget to get text in Char widget

issue3898
review9301002
(grafted from 64eae7781c5170b8c3339c01857263cab5177129)

--HG--
branch : 2.8
extra : source : 64eae7781c5170b8c3339c01857263cab5177129