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

« back to all changes in this revision

Viewing changes to src/DeviceLauncherIcon.cpp

This branch add the capability of setting hard coded keybindings to the
workspace
switcher and the Trash.
In addition, each place entry can specify a shortcut in its place file like:
Shortcut=a
in the [Entry:xxx] section

In addition, there are some fixes to be able to navigate by key navigation (or
activate the shortcuts) for the special switchers: ws, places, devices and
trash.

Fixes:
Bug #617356: Super-shortcuts for apps, files, and workspace switcher    Medium
Triaged
Bug #723141: key navigation doesn't activate trash, keys, expo or places    High
In Progress

Show diffs side-by-side

added added

removed removed

Lines of Context:
122
122
 
123
123
  if (button == 1)
124
124
  {
125
 
    Activate ();
 
125
    ActivateLauncherIcon ();
126
126
  }
127
127
}
128
128
 
196
196
}
197
197
 
198
198
void
199
 
DeviceLauncherIcon::Activate ()
 
199
DeviceLauncherIcon::ActivateLauncherIcon ()
200
200
{
201
201
  GMount *mount;
202
202
  gchar  *name;
273
273
void
274
274
DeviceLauncherIcon::OnOpen (DbusmenuMenuitem *item, int time, DeviceLauncherIcon *self)
275
275
{
276
 
  self->Activate ();
 
276
  self->ActivateLauncherIcon ();
277
277
}
278
278
 
279
279
void