Skip to content

Commit

Permalink
attempt to fix stuck keys
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-keyboard@1258 b067294f-1dea-0310-9683-c47a78595994
  • Loading branch information
mallum committed Oct 10, 2005
1 parent 43e2d0b commit 74587ec
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
15 changes: 15 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
2005-10-10 Matthew Allum <[email protected]>

* src/matchbox-keyboard-ui.c: (mb_kbd_ui_event_loop):
Handle 'stuck' key case ( hopefully ) when release X event is
missed.
* src/matchbox-keyboard.c: (mb_kbd_new):
Qucik hacks to look better on small displays.

2005-10-10 mallum,,, <[email protected]>

reviewed by: <delete if not using a buddy>

* src/matchbox-keyboard-ui.c: (mb_kbd_ui_event_loop):
* src/matchbox-keyboard.c: (mb_kbd_new):

2005-10-04 mallum <[email protected]>

* src/matchbox-keyboard.c: (mb_kbd_new):
Expand Down
7 changes: 7 additions & 0 deletions src/matchbox-keyboard-ui.c
Original file line number Diff line number Diff line change
Expand Up @@ -1215,6 +1215,13 @@ mb_kbd_ui_event_loop(MBKeyboardUI *ui)
key = mb_kbd_locate_key(ui->kbd, xev.xbutton.x, xev.xbutton.y);
if (key)
{
/* Hack if we never go a release event */
if (key != mb_kbd_get_held_key(ui->kbd))
{
mb_kbd_key_release(ui->kbd);
tvt.tv_usec = repeat_delay;
}

DBG("found key for press");
mb_kbd_key_press(key);
tvt.tv_usec = repeat_rate;
Expand Down
9 changes: 5 additions & 4 deletions src/matchbox-keyboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ mb_kbd_new(int argc, char **argv)

if (mb_kbd_ui_display_width(kb->ui) <= 320)
{
kb->key_pad = 1;
kb->col_spacing = 1;
kb->row_spacing = 1;
kb->font_pt_size = 5;
kb->key_border = 1;
kb->key_pad = 0;
kb->col_spacing = 0;
kb->row_spacing = 0;
kb->font_pt_size = 10;
}

if (!mb_kbd_config_load(kb, variant))
Expand Down

0 comments on commit 74587ec

Please sign in to comment.