** Also affects: unity-2d (Ubuntu)
   Importance: Undecided
       Status: New

** Description changed:

+ Test case:
+ 1. Download attachment foo.c 
(https://bugs.launchpad.net/ubuntu/+source/unity-2d/+bug/968840/+attachment/3088438/+files/foo.c)
+ 2. Compile the code with
+    g++ foo.c -o XFakeKey `pkg-config --libs --cflags x11 xtst`
+ 3. Run ./XFakeKey Alt_L Left
+    -> The HUD should not appear
+ 
+ ===
+ 
  This is on Ubuntu 12.04 beta using unity-2d 5.8.0-0ubuntu1.
  
  I use a Thinkpad USB Keyboard on my desktop, which has "back" and
  "forward" buttons just above the arrow keys (as found on Thinkpad
  laptops).  They seem to act a bit differently to the keyboards found on
  laptops though, since instead of generating their own scan codes, they
  generate "Alt+Left" and "Alt+Right" key presses.
  
  For instance, pressing the "back" button in xev results in the following
  events:
  
-     KeyPress event, serial 30, synthetic NO, window 0x3a00001,
-         root 0x15f, subw 0x0, time 434986370, (445,143), root:(512,231),
-         state 0x0, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
-         XLookupString gives 0 bytes: 
-         XmbLookupString gives 0 bytes: 
-         XFilterEvent returns: False
+     KeyPress event, serial 30, synthetic NO, window 0x3a00001,
+         root 0x15f, subw 0x0, time 434986370, (445,143), root:(512,231),
+         state 0x0, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
+         XLookupString gives 0 bytes:
+         XmbLookupString gives 0 bytes:
+         XFilterEvent returns: False
  
-     KeyPress event, serial 30, synthetic NO, window 0x3a00001,
-         root 0x15f, subw 0x0, time 434986370, (445,143), root:(512,231),
-         state 0x8, keycode 113 (keysym 0xff51, Left), same_screen YES,
-         XLookupString gives 0 bytes: 
-         XmbLookupString gives 0 bytes: 
-         XFilterEvent returns: False
+     KeyPress event, serial 30, synthetic NO, window 0x3a00001,
+         root 0x15f, subw 0x0, time 434986370, (445,143), root:(512,231),
+         state 0x8, keycode 113 (keysym 0xff51, Left), same_screen YES,
+         XLookupString gives 0 bytes:
+         XmbLookupString gives 0 bytes:
+         XFilterEvent returns: False
  
  And releasing the key results in:
  
-     KeyRelease event, serial 33, synthetic NO, window 0x3a00001,
-         root 0x15f, subw 0x0, time 434986498, (445,143), root:(512,231),
-         state 0x8, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
-         XLookupString gives 0 bytes: 
-         XFilterEvent returns: False
+     KeyRelease event, serial 33, synthetic NO, window 0x3a00001,
+         root 0x15f, subw 0x0, time 434986498, (445,143), root:(512,231),
+         state 0x8, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
+         XLookupString gives 0 bytes:
+         XFilterEvent returns: False
  
-     KeyRelease event, serial 33, synthetic NO, window 0x3a00001,
-         root 0x15f, subw 0x0, time 434986498, (445,143), root:(512,231),
-         state 0x0, keycode 113 (keysym 0xff51, Left), same_screen YES,
-         XLookupString gives 0 bytes: 
-         XFilterEvent returns: False
+     KeyRelease event, serial 33, synthetic NO, window 0x3a00001,
+         root 0x15f, subw 0x0, time 434986498, (445,143), root:(512,231),
+         state 0x0, keycode 113 (keysym 0xff51, Left), same_screen YES,
+         XLookupString gives 0 bytes:
+         XFilterEvent returns: False
  
  If I press and release the key quick enough, this often has the effect
  of bringing up the HUD as well as causing my web browser to navigate to
  the previous page.
  
  This behaviour is surprising to me: there is clearly a second key press
  in the event stream between the "Alt" key press and release, which I
  would have thought would be enough to inhibit the HUD from popping up.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/968840

Title:
  HUD gets activated by Thinkpad USB Keyboard's back and forward buttons

To manage notifications about this bug go to:
https://bugs.launchpad.net/unity-2d/+bug/968840/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to