~loic.molinari/nux/nux-make-sure-implementation-dependant-feature-are-not-used-in-init-paths

« back to all changes in this revision

Viewing changes to Nux/Focusable.cpp

  • Committer: Gord Allott
  • Date: 2011-03-10 15:20:36 UTC
  • mfrom: (255.3.7 keynav-fixes-11-03-7)
  • Revision ID: gord.allott@canonical.com-20110310152036-qgez83boyj3qqr35
bugfixes for keynav and a bunch of other cool stuff, woo

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
      {
55
55
        case NUX_VK_ENTER:
56
56
          type = FOCUS_EVENT_ACTIVATE;
 
57
          //g_debug ("focus key activated");
57
58
          break;
58
59
        case NUX_KP_UP:
59
60
          type = FOCUS_EVENT_DIRECTION;
60
61
          *direction = FOCUS_DIRECTION_UP;
 
62
          //g_debug ("direction up");
61
63
          break;
62
64
        case NUX_KP_DOWN:
63
65
          type = FOCUS_EVENT_DIRECTION;
64
66
          *direction = FOCUS_DIRECTION_DOWN;
 
67
          //g_debug ("direction down");
65
68
          break;
66
69
        case NUX_KP_LEFT:
67
70
          type = FOCUS_EVENT_DIRECTION;
68
71
          *direction = FOCUS_DIRECTION_LEFT;
 
72
          //g_debug ("direction left");
69
73
          break;
70
74
        case NUX_KP_RIGHT:
71
75
          type = FOCUS_EVENT_DIRECTION;
72
76
          *direction = FOCUS_DIRECTION_RIGHT;
 
77
          //g_debug ("direction right");
73
78
          break;
74
79
        case NUX_VK_TAB:
75
80
          type = FOCUS_EVENT_DIRECTION;
77
82
          if (keysym & NUX_STATE_SHIFT)
78
83
          {
79
84
            *direction = FOCUS_DIRECTION_PREV;
 
85
            //g_debug ("direction_prev");
 
86
          }
 
87
          else
 
88
          {
 
89
            //g_debug ("direction next");
80
90
          }
81
91
          break;
82
92
        default:
100
110
 
101
111
  bool Focusable::DoCanFocus ()
102
112
  {
 
113
    g_debug ("Focusable DoCanFocus");
103
114
    return false;
104
115
  }
105
116