~ubuntu-branches/ubuntu/precise/unity-2d/precise

« back to all changes in this revision

Viewing changes to libunity-2d-private/src/hotkey.h

  • Committer: Package Import Robot
  • Author(s): Didier Roche
  • Date: 2012-04-12 11:02:08 UTC
  • mfrom: (1.1.31)
  • Revision ID: package-import@ubuntu.com-20120412110208-le9rgzotvvuzkbld
Tags: 5.10.0-0ubuntu1
* New upstream release:
  - unity-2d-shell crashed with SIGSEGV in
    QCoreApplication::notifyInternal() (LP: #918566)
  - Unity-2d-shell crashes on startup on 64bit machines with 20+ tiles in
    launcher (LP: #967012)
  - Unity 2-d launcher doesn't hide or display properly (LP: #940590)
  - [dash] search terms aren't applied on lens change / dash show
    (LP: #947985)
  - [5.8 pre staging] "sticky edge" option does nothing visible
    (LP: #961285)
  - [dash] Maximise, then restore - much of background not removed from
    screen (LP: #968215)
  - [hud] shows up when using ctrl+alt and pressing alt first (LP: #972318)
  - [UIFe] Dash - No message displayed when no results are returned in the
    Dash (LP: #711199)
  - Missing lens shortcuts (Super-A, Super-F) (LP: #834078)
  - [dash] Unable to scroll Filter Results (LP: #920878)
  - [launcher] stays open if you mouseOut before reveal animation completes
    (LP: #943296)
  - HUD on wrong screen on mutli monitor system (LP: #947145)
  - [a11y] Orca reports "Shell" when opening HUD, Dash or Launcher
    (LP: #948033)
  - multimonitor: Please give me a way to turn off sticky monitor edges
    (LP: #946104)
  - [dash] Esc key behavior inconsistent with Unity (LP: #966121)
  - toggling the spread from the launcher does not work (LP: #968146)
  - unity-2d-shell crashed with SIGSEGV in KeyMonitor::registerEvents()
    (LP: #965464)
  - [Dash] Focus is lost when switching with the mouse (LP: #974235)
  - Multiple items selected in HUD list (LP: #948441)
  - Hud hides launcher even if set to always show (LP: #948960)
  - [launcher] Pointer reveal barrier should be 1 way only (LP: #960175)
  - [hud] connection to HUD being created on startup (LP: #965106)
  - [dash] On 1024x786 screen, dash not fullscreen so border truncated
    (LP: #967305)
* debian/20_ubuntu-2d-gconf-default:
  - set a default key for HUD showing on Alt, in case unity-3d isn't
    installed or run before unity-2d.
* debian/control:
  - bump libnux-2.0-dev to latest for ABI break

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
    friend class HotkeyMonitor;
28
28
 
29
29
    Q_OBJECT
30
 
    Q_PROPERTY(Qt::Key key READ key NOTIFY keyChanged)
 
30
    Q_PROPERTY(int key READ key NOTIFY keyChanged)
31
31
    Q_PROPERTY(Qt::KeyboardModifiers modifiers READ modifiers NOTIFY modifiersChanged)
32
32
 
33
33
public:
34
 
    Qt::Key key() const { return m_key; }
 
34
    int key() const { return m_key; }
 
35
    uint x11key() const { return m_x11key; }
35
36
    Qt::KeyboardModifiers modifiers() const { return m_modifiers; }
36
37
 
37
38
Q_SIGNALS:
38
 
    void keyChanged(Qt::Key key);
 
39
    void keyChanged(int key);
39
40
    void modifiersChanged(Qt::KeyboardModifiers modifiers);
40
41
    void pressed();
41
42
    void released();
46
47
 
47
48
private:
48
49
    Hotkey(Qt::Key key, Qt::KeyboardModifiers modifiers, QObject *parent);
 
50
    Hotkey(uint x11key, Qt::KeyboardModifiers modifiers, QObject *parent);
49
51
    bool processNativeEvent(uint x11Keycode, uint x11Modifiers, bool isPressEvent);
 
52
    void translateModifiers(Qt::KeyboardModifiers modifiers);
50
53
 
51
54
private:
52
55
    uint m_connections;
53
 
    Qt::Key m_key;
 
56
    int m_key;
54
57
    Qt::KeyboardModifiers m_modifiers;
55
58
    uint m_x11key;
56
59
    uint m_x11modifiers;