After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 341417 - Alt+Enter
Alt+Enter
Status: RESOLVED FIXED
Product: deskbar-applet
Classification: Deprecated
Component: general
2.14.x
Other All
: Normal minor
: ---
Assigned To: Deskbar Applet Maintainer(s)
Deskbar Applet Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2006-05-11 13:57 UTC by Leonardo Ferreira Fontenelle
Modified: 2006-05-14 13:04 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
Added described check form above (1016 bytes, patch)
2006-05-12 12:59 UTC, Sebastian Pölsterl
none Details | Review

Description Leonardo Ferreira Fontenelle 2006-05-11 13:57:06 UTC
Please describe the problem:
Typing something on the text field and pressing <Alt>Enter causes Deskbar to
display a non-fatal error message:

Traceback (most recent call last):
  • File "/usr/lib/python2.4/site-packages/deskbar/DeskbarApplet.py", line 172 in on_keyboard_shortcut
    match = modctx.module.on_key_press(qstring, shortcut)
  • File "/usr/lib/deskbar-applet/handlers/epiphany.py", line 101 in on_key_press
    return on_entry_key_press(query, shortcut, shortcuts_to_smart_bookmarks_map)
  • File "/usr/lib/python2.4/site-packages/deskbar/BrowserMatch.py", line 120 in on_entry_key_press
    key = chr(shortcut)
ValueError: chr() arg not in range(256)


Steps to reproduce:



Actual results:


Expected results:


Does this happen every time?
Yes

Other information:
If there is any other relevant information I'll be glad to supply it.
Comment 1 Raphael Slinckx 2006-05-11 14:24:04 UTC
Ok, I known why this bug happens, alt+xx is used to trigger special events on matches that support it. The value of the key should be checked to be in [A-Za-z0-9] (or 0<x<256) before the method continue. Marked as gnome-love, i'll probably create a patch in the following days if noone tackle it.
Comment 2 Sebastian Pölsterl 2006-05-12 12:59:24 UTC
Created attachment 65311 [details] [review]
Added described check form above
Comment 3 Raphael Slinckx 2006-05-14 13:04:05 UTC
Thanks in HEAD and 2.14 !