Banshee.Sources.Gui.SourceView.IncrementPathForKeyPress C# (CSharp) Method

IncrementPathForKeyPress() private method

private IncrementPathForKeyPress ( Gdk press, Gtk.TreePath path ) : bool
press Gdk
path Gtk.TreePath
return bool
        private bool IncrementPathForKeyPress (Gdk.EventKey press, TreePath path)
        {
            switch (press.Key) {
            case Gdk.Key.Up:
            case Gdk.Key.KP_Up:
                return path.Prev ();

            case Gdk.Key.Down:
            case Gdk.Key.KP_Down:
                path.Next ();
                return true;
            }

            return false;
        }