Closed GoogleCodeExporter closed 8 years ago
Two other problems that might be related to my post above.
1 -- <right> does not work correctly when used in activating main menu
choices. Example:
In Kate you want to activate the File menu, go to an entry that has sub-menus,
go into the sub-menu, then down to the menu item you want to activate.
2 -- I got an error when "Initializing Autokey" and I included the log of that
at the bottom of this post.
I tested these problems in both Kate and Gedit but could not do an apples to
apples comparison because the menu choices are different for the two programs.
But when I tested Gedit on a menu with sub-menus, neither <down> nor <right>
worked the same as using the keyboard to activate the sub-menu did. In
Autokey, using multiple <down>s with Gedit in the View drop down menu, it would
only go so far down (it never would reach the last choice) then revert to the
top choice. When you added a <right> to the phrase (after a <down>) it moved
to the next choice in the main menu (ie. Search). This indicates Gedit also has
problems similar to those I report for Kate below.
Results of testing with Kate:
Re: Issue one above:
In Autokey:
Using <alt>+f activates the File menu correctly,
Using T then shows the Templates sub-menu.....
At this point when activating the menus by hand, using either "H" or "right
down enter" will activate the HTML sub-menu, but....
When using Autokey:
Using <right>, any number of times, does nothing.
Using H causes the drop down menu to disappear.
This is the log output when using <right> to activate the sub-menu:
Hotkey is: Ctrl+Shift+`
Phrase is: <alt>+FT<right><right><right>
Output : The drop down menu shows the Template sub-menu but does not activate
it (does not highlight it).
Debug log:
DEBUG - iomediator - <ctrl> pressed
DEBUG - iomediator - <shift> pressed
DEBUG - service - Raw key: u'`', modifiers: ['<ctrl>', '<shift>'], Key: u'~'
INFO - service - Matched hotkey phrase/script with prompt=False
DEBUG - iomediator - Send via event interface
DEBUG - interface - Send modified key: modifiers: [u'<alt>'] key: F
DEBUG - interface - Sending string: u'T'
DEBUG - interface - Send special key: [u'<right>']
DEBUG - interface - Send special key: [u'<right>']
DEBUG - interface - Send special key: [u'<right>']
DEBUG - iomediator - <shift> released
DEBUG - iomediator - <ctrl> released
This is the log output when using H
Hotkey is: Ctrl+Shift+`
Phrase is: <alt>+FTH
Output is: The entire File drop down menu pops up (flashes) then instantly
disappears.
Debug log:
DEBUG - iomediator - <ctrl> pressed
DEBUG - iomediator - <shift> pressed
DEBUG - service - Raw key: u'`', modifiers: ['<ctrl>', '<shift>'], Key: u'~'
INFO - service - Matched hotkey phrase/script with prompt=False
DEBUG - iomediator - Send via event interface
DEBUG - interface - Send modified key: modifiers: [u'<alt>'] key: F
DEBUG - interface - Sending string: u'TH'
DEBUG - iomediator - <shift> released
DEBUG - iomediator - <ctrl> released
I just noticed that I got this Autokey error when starting Autokey. I am sure
I got it before when I was working on the problems described in the first post,
but I did not notice it.
DEBUG - interface - Grabbing hotkey: [u'<ctrl>', u'<shift>'] u'`'
DEBUG - interface - Grabbing hotkey: [u'<ctrl>'] u'<f7>'
X protocol error:
<class 'Xlib.error.BadAccess'>: code = 10, resource_id = 346, sequence_number =
14, major_opcode = 33, minor_opcode = 0
DEBUG - interface - Alt-Grid: XK_Alt_R, 65514
DEBUG - interface - [(92, 0), (92, 2)]
DEBUG - interface - X Server Keymap
DEBUG - interface - [\] : [(51, 0), (51, 2)]
Again I hope this helps and saves you time if you have to fix it.
Keith
Original comment by keithwda...@gmail.com
on 7 Nov 2010 at 4:50
Seems to be a small bug in the hotkey parsing code - thanks for reporting.
Original comment by cdekter
on 8 Jan 2011 at 3:52
Fixed for v0.71.2
Original comment by cdekter
on 25 Jan 2011 at 7:14
Original issue reported on code.google.com by
keithwda...@gmail.com
on 7 Nov 2010 at 4:40