mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 04:22:05 +00:00
ClutterText: Only grab keyboard focus if keyboard-interactive.
Previously, ClutterText took keyboard focus on mouse-down, regardless if it were editable or selectable. Now it checks these properties, and behaves like other actors if it can't do anything useful with the focus. http://bugzilla.clutter-project.org/show_bug.cgi?id=2462
This commit is contained in:
parent
7b985f034f
commit
def14e80cb
@ -1649,7 +1649,8 @@ clutter_text_button_press (ClutterActor *actor,
|
||||
gfloat x, y;
|
||||
gint index_;
|
||||
|
||||
/* we'll steal keyfocus if we do not have it */
|
||||
/* we'll steal keyfocus if we need it */
|
||||
if (priv->editable || priv->selectable)
|
||||
clutter_actor_grab_key_focus (actor);
|
||||
|
||||
/* if the actor is empty we just reset everything and not
|
||||
|
Loading…
Reference in New Issue
Block a user