mirror of
https://github.com/elementary/gala.git
synced 2024-12-26 02:33:27 +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,9 +340,11 @@ 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 ();
|
||||
break;
|
||||
case Clutter.Key.Down:
|
||||
|
Loading…
Reference in New Issue
Block a user