Hi there,<br><br>back to virtual keyboard stuff, I'm wondering how could a non-gtk entry (mozilla password html form in this case) could hide the inputed text (after showing for a short period of time - default behaviour), like if I set gtk_entry_set_visibility of a GtkEntry to FALSE. I've been looking over the GtkEntry source code (at
<a href="http://maemo.org/lxr/source/gtk%2B/gtk/gtkentry.c">http://maemo.org/lxr/source/gtk%2B/gtk/gtkentry.c</a>) and its way seems to be to gtk_gobject dependent. Is there any workaround ? Aaron ? :)<br><br><div><span class="gmail_quote">
On 1/30/06, <b class="gmail_sendername">Aaron Levinson</b> <<a href="mailto:alevinsn@aracnet.com">alevinsn@aracnet.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
First off, vte is just another Gtk widget, and it uses a Gtk input method.<br>It just so happens that vte is the widget that provides most of the<br>functionality for xterm. You can examine the source code for vte for more
<br>information.<br><br>There is no "delete" key on the virtual keyboard, so I would have to<br>assume that you are getting that from your keyboard. When the virtual<br>keyboard is used to send a backspace, it will result in a key-press and
<br>key-release event (since there is no simple way to represent this<br>character using the GtkIMContext's "commit" event). So, you'll need to<br>handle these special keys in your key-press and key-release event
<br>handlers. Basically, if the GtkIMContext doesn't handle the key-press or<br>key-release in the calls to gtk_im_context_filter_keypress(), then you may<br>want to handle certain key events or just blindly handle all that get
<br>through the filter.<br><br>You can build vncviewer in debug mode (use ./configure --help to determine<br>the proper option) and debug it to see how it handles a virtual keyboard<br>backspace.<br><br>And finally, I will again refer you to the GtkEntry class, which is a
<br>relatively simple class that demonstrates how to properly use input<br>methods. In getting input methods working properly in vncviewer, I<br>studied the source code of xterm, vte, GtkEntry, and other input-driven<br>
widgets.<br><br>Aaron<br><br>On Mon, 30 Jan 2006, Antonio Gomes wrote:<br><br>> Some keys are not recognized, though. Actually, mainly those related to<br>> deleting actions (like delete, backspace virtual keyboard keys and so on).
<br>> As far as I can see/understand, xterm also had to handle them in a proper<br>> way, using "vte" [1] for that. Is it ? Is there other GtkIMContext singal to<br>> handle actions like these ?<br>>
<br>> [1]<br>> <a href="http://developer.gnome.org/doc/API/2.0/vte/vteterminal.html#VTETERMINALERASEBINDING">http://developer.gnome.org/doc/API/2.0/vte/vteterminal.html#VTETERMINALERASEBINDING</a><br><br></blockquote>
</div><br>-- <br>--Antonio Gomes<br>http:// tonikitoo (dot) blogspot (dot) com (slash)