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

OnKeyPressEvent() protected method

protected OnKeyPressEvent ( Gdk press ) : bool
press Gdk
return bool
        protected override bool OnKeyPressEvent (Gdk.EventKey press)
        {
            TreeIter iter;
            bool movedCursor = false;

            Selection.GetSelected (out iter);
            TreePath path = store.GetPath (iter);

            // Move the path to the next source in line as we need to check if it's a group
            IncrementPathForKeyPress (press, path);

            Source source = store.GetSource (path);
            while (source is SourceManager.GroupSource && IncrementPathForKeyPress (press, path)) {
                source = store.GetSource (path);
                SetCursor (path, source_column, false);
                movedCursor = true;
            }

            return movedCursor ? true : base.OnKeyPressEvent (press);
        }