aboutsummaryrefslogtreecommitdiffstats
path: root/src/matchbox-keyboard-key.c
AgeCommit message (Collapse)Author
2020-10-08Add SPDX-License-Identifier: LGPL-2.1Matthew
Fixes [YOCTO #13319] Signed-off-by: Mingde (Matthew) Zeng <matthew.zeng@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-08-31MBKeyboardKey: don't do full keyboard redraw on release when in Caps modeTomas Frydrych
If a key has a modifier then on release we have to redraw the whole keyboard because on release the modifier is reset, so the kbd layout changes. The Caps modifier is an exception, since it stays in place until it is explicitely cancelled, but we were still scheduling a full redraw; if the user drags a finger across the kbd and the HW is not fast enough to keep up with the redraws, this becomes rather obvious.
2012-08-08Fix handling of long press on ShiftIan Honohan
Only check for long press for the unshifted -> shifted transition, for shifted -> unshifted do just normal processing Signed-off-by: Tomas Frydrych <tomas@sleepfive.com>
2012-08-03MBKeyboardKey: fix handling of Shift state when not using GtkTomas Frydrych
Patch by Wim Crols
2012-05-17MBKeyboardKey: pass META to fakekeyTomas Frydrych
2012-05-17MBKeyboardKey: tweak shift for Greek capsTomas Frydrych
If the KeySym is in the upper case range, force the SHIFT flag, if it is in the lower case range, forcibly clear the flag.
2012-05-17MBKeyboardKey: fix handling of awkward capitalsTomas Frydrych
If a kbd layout contains a capital letter that is not part of the server keyboard map, we need to propagate associated shift state to libfakey to ensure that a synthetic event is generated for the Shift key; without this the keyevent will not have the keyboard state set correctly, which might result in the lower case peer symbol emerging in the application.
2012-03-09Make all modifier vkb keys stickyTomas Frydrych
2012-03-09Long Shift == CAPSTomas Frydrych
Make long press on the shift key behave like a caps lock (Only implemented for the GtkWidget at the moment; the only reason for this is I can't be bothered to implement a timeout function ...)
2012-03-09simple above key popupTomas Frydrych
* Adds a popup above the key on press (except for modifiers) * With the exception of Backspace, keys only generate key events on release (this means no autorepeat)
2012-03-09Facilitate creation of multiple widgetsTomas Frydrych
* Refactor things, so that instead of various globals we have per- widget data * Implement object tear down
2012-03-09cairo backend: make it workTomas Frydrych
TODO: the colours should be easier to customize
2012-02-08Relicense to LGPL, apart from applet/applet.cRoss Burton
2007-09-172007-09-17 Matthew Allum <mallum@openedhand.com>mallum
* src/matchbox-keyboard-key.c: Dont set uneeded shift flag in libfakekey (Daniel Willmann) git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-keyboard@1675 b067294f-1dea-0310-9683-c47a78595994
2006-05-152006-05-15 Matthew Allum <mallum@openedhand.com>mallum
* configure.ac: * layouts/keyboard.xml: * src/Makefile.am: * src/config-parser.c: (config_handle_key_subtag): * src/matchbox-keyboard-image.c: * src/matchbox-keyboard-key.c: (mb_kbd_key_set_image_face): * src/matchbox-keyboard-ui-xft-backend.c: (mb_kbd_ui_xft_redraw_key): * src/matchbox-keyboard-ui.c: (mb_kdb_ui_unit_key_size), (mb_kbd_ui_min_key_size): * src/matchbox-keyboard.h: Add initial support for defineable PNG images on keys. Keys with images sizing a little borked atm. git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-keyboard@1341 b067294f-1dea-0310-9683-c47a78595994
2005-10-262005-10-26 Matthew Allum <mallum@openedhand.com>mallum
* AUTHORS: Populate. * Makefile.am: * configure.ac: * src/Makefile.am: Fix cairo build issues, * src/matchbox-keyboard-xembed.c: Add XEMBED support for embedding keyboard in other apps. * examples/Makefile.am: * examples/matchbox-keyboard-embbed.c: Add example embedding app * src/config-parser.c: (config_str_to_keysym), (config_str_to_modtype), (config_xml_start_cb): * src/matchbox-keyboard-key.c: (mb_kbd_key_get_extended), (mb_kbd_key_set_row), (mb_kdb_key_has_state), (mb_kbd_key_set_glyph_face), (mb_kbd_key_get_glyph_face), (mb_kbd_key_set_image_face), (mb_kbd_key_set_char_action), (mb_kbd_key_press): * src/matchbox-keyboard-layout.c: * src/matchbox-keyboard-row.c: * src/matchbox-keyboard-ui-cairo-backend.c: (mb_kbd_ui_cairo_text_extents), (mb_kbd_ui_cairo_load_font), (mb_kbd_ui_cairo_redraw_key), (mb_kbd_ui_cairo_pre_redraw), (mb_kbd_ui_cairo_resources_create), (mb_kbd_ui_cairo_resize), (mb_kbd_ui_cairo_init): * src/matchbox-keyboard-ui-cairo-backend.h: * src/matchbox-keyboard-ui-xft-backend.c: (mb_kbd_ui_xft_text_extents), (mb_kbd_ui_xft_redraw_key), (mb_kbd_ui_xft_resources_create), (mb_kbd_ui_xft_resize), (mb_kbd_ui_xft_init): * src/matchbox-keyboard-ui-xft-backend.h: * src/matchbox-keyboard-ui.c: (get_current_window_manager_name), (get_desktop_area), (get_xevent_timed), (mb_kbd_ui_send_keysym_press), (mb_kbd_ui_send_release), (mb_kdb_ui_unit_key_size), (mb_kbd_ui_min_key_size), (mb_kbd_ui_redraw_row), (mb_kbd_ui_swap_buffers), (mb_kbd_ui_redraw), (mb_kbd_ui_resources_create), (mb_kbd_ui_resize), (mb_kbd_ui_event_loop), (mb_kbd_ui_realize), (mb_kbd_ui_init): * src/matchbox-keyboard.c: (mb_kbd_new): * src/matchbox-keyboard.h: * src/util.c: (util_utf8_char_cnt), (util_file_readable): Fix GCC 4 Warnings. Add License to all files. Improve buggy cairo backend and add gradient keys git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-keyboard@1266 b067294f-1dea-0310-9683-c47a78595994
2005-04-27Make keyboard intelligently handle layout on screen orientation and rotationmallum
git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-keyboard@1132 b067294f-1dea-0310-9683-c47a78595994
2005-04-19Improve config.xml. Fix layout bugsmallum
git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-keyboard@1116 b067294f-1dea-0310-9683-c47a78595994
2005-04-19See ChangeLogmallum
git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-keyboard@1115 b067294f-1dea-0310-9683-c47a78595994
2005-04-18Handle resizes, implement much of keyboard state handlingmallum
git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-keyboard@1114 b067294f-1dea-0310-9683-c47a78595994
2005-04-17Add initial modifier codemallum
git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-keyboard@1113 b067294f-1dea-0310-9683-c47a78595994
2005-04-17layout engine improvementsmallum
git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-keyboard@1110 b067294f-1dea-0310-9683-c47a78595994
2005-04-13handle key press/release bettermallum
git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-keyboard@1108 b067294f-1dea-0310-9683-c47a78595994
2005-04-13Added initial UI codemallum
git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-keyboard@1107 b067294f-1dea-0310-9683-c47a78595994
2005-04-10Improvemnts to config parsing, beginnings of uimallum
git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-keyboard@1103 b067294f-1dea-0310-9683-c47a78595994
2005-04-06Added framework code for new matchbox-keyboardmallum
git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-keyboard@1099 b067294f-1dea-0310-9683-c47a78595994