andreikop / enki

A text editor for programmers
http://enki-editor.org
GNU General Public License v2.0
161 stars 38 forks source link

Alt doesn't focus the main menu #164

Closed bjones1 closed 10 years ago

bjones1 commented 10 years ago

Let alt by itself select the main menu, which would then allow navigation (e.g. alt, then f would open the file menu).

Andrei's response: Alt moves focus to MM on some desktop environments. Don't remember which one, it doesn't work for me now on Ubuntu 13.04 + Mate.

andreikop commented 10 years ago

... but it works on Windows 7.

Probably, Enki should catch Alt event and explicitly move the focus

andreikop commented 10 years ago

It seems like Alt behavior is platform dependent. It works for me on Windows.

I added F10 shortcut, which opens main menu. Shortcut is visible in the View menu and documented in the User Manual

bjones1 commented 10 years ago

Oops, I was wrong -- I didn't notice that focus on my PC does indeed select the main menu with just a press of Alt. A follow-up request: could the main menu items have shortcut keys assigned to them? E.g. pressing Alt, then F would open the File menu.

On Sun, Feb 23, 2014 at 2:44 AM, Andrei Kopats notifications@github.comwrote:

It seems like Alt behavior is platform dependent. It works for me on Windows.

I added F10 shortcut, which opens main menu. Shortcut is visible in the View menu and documented in the User Manual

Reply to this email directly or view it on GitHubhttps://github.com/hlamer/enki/issues/164#issuecomment-35826903 .

Bryan A. Jones, Ph.D. Associate Professor Department of Electrical and Computer Engineering 231 Simrall / PO Box 9571 Mississippi State University Mississippi state, MS 39762 http://www.ece.msstate.edu/~bjones bjones AT ece DOT msstate DOT edu voice 662-325-3149 fax 662-325-2298

Our Master, Jesus Christ, is on his way. He'll show up right on time, his arrival guaranteed by the Blessed and Undisputed Ruler, High King, High God.

andreikop commented 10 years ago

E.g. pressing Alt, then F would open the File menu. Do you mean using standard Alt+F shortcuts, or something self-invented?

bjones1 commented 10 years ago

No, a standard menu action in Windows: Alt+letter opens the menu OR Alt by itself, then pressing the letter.

andreikop commented 10 years ago

If you mean something like Alt+F for File menu - Enki doesn't have free letters for menu. See google docs table with keyboard shortcuts.

bjones1 commented 10 years ago

No, I mean changing line 222 of enki/core/mainwindow.py to be "&File" instead of "File" and similarly. I can submit a pull request if you'd like.

andreikop commented 10 years ago

If line 222 will be " "&File", it will conflict with "&File Browser" dock title

bjones1 commented 10 years ago

Hmmm. I thought there was a way to keep the underline in &File without automatically associating it with Alt+F.

bjones1 commented 10 years ago

...but I was wrong. Sorry for the distraction.