SlickEdit Community

Archived Beta Discussions => SlickEdit 201x Beta Discussions => SlickEdit 2014 v19 beta => Topic started by: jnairb on August 25, 2014, 08:03:45 PM

Title: B1: No top-level menu hotkeys
Post by: jnairb on August 25, 2014, 08:03:45 PM
Running on Windows 7 x64. The top-level menu (i.e. File/Edit/Search/View...) does not have any hot-keys and when I attempt to edit the _mdi_menu and add them, I can't get them to be saved except for File. (And somehow I got the View menu to have hot key of "i" -- V&iew in the _mdi_menu, but that's not what the previous release used and it's not what I explicitly set.)

In configuration (Keyboard and Mouse/Advanced), I have Use Alt+key for menu drop-downs  OFF and Alt menu ON. Previous SE releases, I can then press Alt to activate main menu, then hot-key to open a particular menu. None of this works with SE 19 except for File (after editing the _mdi_menu).
Title: Re: B1: No top-level menu hotkeys
Post by: patrick on August 29, 2014, 03:23:55 PM
Fixed for the next beta drop.  Thanks for the report.
Title: Re: B1: No top-level menu hotkeys
Post by: jnairb on September 04, 2014, 08:51:45 PM
I just loaded beta 2. If I start beta 2 with a new config directory (so it doesn't try to upgrade my 18.0.1 config), the top level menu hot-keys are all set. Tools has a hot-key of T but in my 18.0.1 version, it has a hot-key of 'o' instead ... I don't think I intentionally changed it, but T makes more sense so I don't particularly care.

But if I allow beta 2 to upgrade my 18.0.1 configuration, then the View and Tools menus do NOT have a hot key  set, but all the others do. If I go and edit the _mdi_menu and add a hot-key of V and T respectively and save, the View menu now has a hot key of 'i' while the Tools menu still has no hot key. Should I attach any specific 18.0.1 config file to help debug?
Title: Re: B1: No top-level menu hotkeys
Post by: Clark on September 04, 2014, 09:00:48 PM
One problem that's unlikely to be fixed is the following. Install beta 1. Beta 1 will mess up your MDI menu hot-keys. Install beta 2. It will use the messed up _mdi_menu.

Other problems need to be fixed though.
Title: Re: B1: No top-level menu hotkeys
Post by: jnairb on September 04, 2014, 09:07:35 PM
I deleted my beta 1 19.0.0 config directory before doing anything with beta 2. So that's not the problem.
Title: Re: B1: No top-level menu hotkeys
Post by: jnairb on September 09, 2014, 04:57:04 PM
Just upgraded to Beta 3. I deleted my 19.0.0 config directory and let beta 3 upgrade from my 18.0.1 directory.

I still have the problem where both the View and Tools menu have no hot-keys defined. And if I try to edit the _mdi_menu and set them to '&View' and '&Tools', the View menu caption becomes 'V&iew' ('i' for hotkey) and the Tools menu caption goes back to just 'Tools' (no hot key).

There seems to be something my 18.0.1 that's throwing it off. If I let beta 3 create a new config (not upgrade my 18.0.1 config), then the two menus have hot-keys.

I do have some customizations to the menu (nothing to the top level menu though). All of those menu customizations were lost when I upgraded. Is that part of the problem? And should my menu changes have been upgraded?
Title: Re: B1: No top-level menu hotkeys
Post by: lambertia on September 10, 2014, 05:11:13 AM
I am also getting this issue with B3 and a brand new config directory.

SlickEdit 2014 (v19.0.0.6 32-bit)

Serial number: FE10194_BETA
License type: Beta License
License expiration: 2014-10-23 12:17:00
License file: /opt/slickedit-19.0.0.6/bin/slickedit.lic

Build Date: September 08, 2014
Emulation: Brief

OS: Linux
OS Version: Ubuntu 10.04.4 LTS
Kernel Level: 3.13.0-35-generic
Build Version: #62-Ubuntu SMP Fri Aug 15 01:58:42 UTC 2014
Processor Architecture: i686

X Server Vendor: The X.Org Foundation
Memory: 81% Load, 10881MB/13279MB Virtual
Shell Info: /opt/slickedit-19.0.0.6/bin/secsh -i
Screen Size: 1920 x 1080, 1920 x 1080

Project Type: Cpp
Language: .h (C/C++)

Installation Directory: /opt/slickedit-19.0.0.6/
Configuration Directory: /space/gbarron/work/mo-strategy/se/sc/19.0.0/

Title: Re: B1: No top-level menu hotkeys
Post by: lambertia on September 10, 2014, 05:33:18 AM
When I edit the mdi menu the hotkeys don't stick. This is really bad. I hate using the mouse. Is there some other way I can fix it?
Title: Re: B1: No top-level menu hotkeys
Post by: lambertia on September 10, 2014, 07:05:15 AM
I note that

vunxs19.0.0.6l.e

Does not have hot keys assigned for the View and Tools menus.
Title: Re: B1: No top-level menu hotkeys
Post by: Clark on September 10, 2014, 01:09:55 PM
There is a difficult issue on Ubuntu which is why you are seeing this new problem. The Ubuntu Unity menu bar takes over keys. For example, if there is a hot key for &F in the menu and you press Alt+F, SlickEdit will never see this key. The key will just go to the menu bar and SlickEdit has no control over this. The work around is to remove hot keys from menu captions if SlickEdit has a key binding. It's a little more complicated than that but that's the basic idea. This is a new problem in Ubuntu (older versions didn't have this problem).

We will try to make this a little more flexible in the next beta.
Title: Re: B1: No top-level menu hotkeys
Post by: lambertia on September 11, 2014, 12:42:27 AM
Hi Clark!

I have installed B3 on ubuntu 10.04 which I think does not use Unity. The problem is occurring there also. Are you sure you're not barking up the wrong tree? Are you sure its not becuase there are not hot keys defined in vunxs19.0.0.6l.e whereas the rest of the menus in there do?

Cheers!
--
Greg.
Title: Re: B1: No top-level menu hotkeys
Post by: Clark on September 11, 2014, 02:37:00 AM
Please test this in the next beta. There are a couple of fixes for this type of problem.
Title: Re: B1: No top-level menu hotkeys
Post by: lambertia on September 11, 2014, 03:04:53 AM
Will do! :)
Title: Re: B1: No top-level menu hotkeys
Post by: Clark on September 11, 2014, 12:22:18 PM
As long as your previous version config files are correct, it should upgrade fine. Be sure to delete the 19.0.0 config directory before running the next beta. Hopefully, after this next beta, you won't have to do that.
Title: Re: B1: No top-level menu hotkeys
Post by: lambertia on September 11, 2014, 11:27:37 PM
All good now! :)
Title: Re: B1: No top-level menu hotkeys
Post by: jnairb on September 12, 2014, 03:09:37 AM
For me on Windows 7 x64, this is mostly fixed and is easily correctable afterwards:

Deleted Beta 3 19.0.0 config directory and started VS 19 beta 4 which copied my 18.0.1 config.
My 18.0.1 top level menu had the 1st char as the hot key for all menus except Tools which was T&ools. The 19.0.0 beta 4 top level menu had the 1st char as the hot key for all menus except View which was V&iew. Editing _mdi_menu and changing to &View, now sticks after saving, so it's at least correctable.

Contrast that with starting 19.0.0 beta 4 with -sc junk so there's no 18.0.1 config to copy, and then the top level menu has the 1st char as the hot key for all menus (no exceptions). I have no idea why this is different.

There's obviously a bug in the upgrade from the 18.0.1 config somewhere, but it's at least less severe now.
Title: Re: B1: No top-level menu hotkeys
Post by: Clark on September 12, 2014, 07:37:51 PM
The basic logic for hot keys is to use the first letter if there is no key binding. If there is a binding, try the users edit (hot key on the menu resource). However, the logic for "View" and "Tools" is special cased. For these, the first letter is checked for no binding. Then the second letter is checked for no binding. If both fail, then the users edit is checked. If all fail, and we are on Ubuntu with Unity, then remove the hot key letter.