mirror of
https://github.com/elementary/gala.git
synced 2024-12-25 18:24:05 +03:00
multitaskingview: Ignore key/scroll-events while closing (#97)
This commit is contained in:
parent
981eff8442
commit
692079168b
@ -164,6 +164,9 @@ namespace Gala
|
||||
*/
|
||||
public override bool scroll_event (ScrollEvent scroll_event)
|
||||
{
|
||||
if (!opened)
|
||||
return true;
|
||||
|
||||
if (scroll_event.direction != ScrollDirection.SMOOTH)
|
||||
return false;
|
||||
|
||||
@ -337,10 +340,12 @@ namespace Gala
|
||||
*/
|
||||
public override bool key_press_event (Clutter.KeyEvent event)
|
||||
{
|
||||
if (!opened)
|
||||
return true;
|
||||
|
||||
switch (event.keyval) {
|
||||
case Clutter.Key.Escape:
|
||||
if (opened)
|
||||
toggle ();
|
||||
toggle ();
|
||||
break;
|
||||
case Clutter.Key.Down:
|
||||
select_window (MotionDirection.DOWN);
|
||||
|
Loading…
Reference in New Issue
Block a user