Re: Visual Keyboard
- From: Dov Grobgeld <dov grobgeld gmail com>
- To: Emmanuel Gontcho <gontcho gmail com>
- Cc: gtk-list gnome org, Paul Davis <paul linuxaudiosystems com>
- Subject: Re: Visual Keyboard
- Date: Thu, 25 Nov 2010 18:11:50 +0200
Would the following work?
- Create a keyboard widget with GtkButtons representing the "normal" keys and GtkToggleButtons for Shift, Control, Alt, etc.
- Overwrite the button-press-event of each GtkButton to prevent button press events with from stealing the keyboard focus.
- In the clicked event of the keyboard buttons, look up the current focused widget, and send it a (synthetic) key-press-event of the configuration of the current key plus the state of the sticky keys.
Of course such a widget should take its keyboard layout(s) from a configuration file.
Is it really that simple? ;-)
Regards,
Dov
On Thu, Nov 25, 2010 at 17:10, Emmanuel Gontcho
<gontcho gmail com> wrote:
Thank you all for your answer,
I have never tried before to write a widget from scratch, nor now,
cause I have no time, the software must work before 15th december. So
quickly I made what you can see in the attachment, using one or two
functions, GtkTable and buttons, I think it is enough for the
begining.
2010/11/24, Paul Davis <paul linuxaudiosystems com>:
> On Wed, Nov 24, 2010 at 10:46 AM, Frederico <
frede sch gmail com> wrote:
>> I think that this kind of feature normally is abstracted by the OS.
>> Ex: Android always shows a virtual keyboard when a text widget have
>> focus. Other example is the virtual keyboard of windows, but it must
>> be manually executed, differently from Android.
>
> he's asking about the existence of a GTK widget that can be used for this.
>
> the answer, AFAIK, is that no such widget exists.
> _______________________________________________
> gtk-list mailing list
>
gtk-list gnome org
>
http://mail.gnome.org/mailman/listinfo/gtk-list
>
_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]