~canonical-dx-team/unity/unity.fix-ql-losing-focus

« back to all changes in this revision

Viewing changes to src/unityshell.cpp

  • Committer: Didier Roche
  • Date: 2011-02-18 18:24:57 UTC
  • mto: This revision was merged to the branch mainline in revision 872.
  • Revision ID: didier.roche@canonical.com-20110218182457-msu1nxwczopu57aw
add keypress shortcut logic (super + digit) (LP: #721264)

Show diffs side-by-side

added added

removed removed

Lines of Context:
188
188
        PluginAdapter::Default ()->OnScreenGrabbed ();
189
189
      else if (event->xfocus.mode == NotifyUngrab)
190
190
        PluginAdapter::Default ()->OnScreenUngrabbed ();
191
 
 
 
191
      break;
 
192
    case KeyPress:
 
193
      KeySym key_sym;
 
194
      if (XLookupString(&(event->xkey), NULL, 0, &key_sym, 0) > 0)
 
195
          launcher->CheckSuperShortcutPressed (key_sym, 0, 0);
192
196
      break;
193
197
  }
194
198