[PATCH weston] clients/editor.c: esc key no longer prints out utf8 character

Kristian Høgsberg hoegsberg at gmail.com
Tue Jul 9 16:48:34 PDT 2013


On Sat, Jul 06, 2013 at 08:42:59PM +0200, blackwolf12333 wrote:
> ---
>  clients/editor.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)

Thanks, that's better.  Committed with a tweak to remove the //
comment and simpler commit message.  I used Peter Maatman as the
author here as well (you had both your email and name set to
blackwolf12333).

Kristian

> diff --git a/clients/editor.c b/clients/editor.c
> index 0035904..b9579af 100644
> --- a/clients/editor.c
> +++ b/clients/editor.c
> @@ -1155,11 +1155,13 @@ key_handler(struct window *window,
>  				widget_schedule_redraw(entry->widget);
>  			}
>  			break;
> +		case XKB_KEY_Escape:
> +			break; // do nothing when escape was pressed.
>  		default:
>  			if (xkb_keysym_to_utf8(sym, text, sizeof(text)) <= 0)
>  				break;
>  
> -			text_entry_commit_and_reset(entry);
> + 			text_entry_commit_and_reset(entry);
>  
>  			text_entry_insert_at_cursor(entry, text, 0, 0);
>  			break;
> -- 
> 1.8.3.2
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list