mirror of
https://github.com/elementary/gala.git
synced 2024-12-27 03:04:08 +03:00
Allow <Enter> to leave workspace-view without selecting window (#525)
This commit is contained in:
parent
2a6da29d8b
commit
5a7f0cd85f
@ -363,7 +363,10 @@ namespace Gala
|
||||
break;
|
||||
case Clutter.Key.Return:
|
||||
case Clutter.Key.KP_Enter:
|
||||
get_active_workspace_clone ().window_container.activate_selected_window ();
|
||||
if (!get_active_workspace_clone ().window_container.activate_selected_window ()) {
|
||||
toggle ();
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -308,10 +308,14 @@ namespace Gala
|
||||
/**
|
||||
* Emit the selected signal for the current_window.
|
||||
*/
|
||||
public void activate_selected_window ()
|
||||
public bool activate_selected_window ()
|
||||
{
|
||||
if (current_window != null)
|
||||
if (current_window != null) {
|
||||
current_window.selected ();
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user