[issue1794] Hot keys must work in any keyboard layout
Nashev <[EMAIL PROTECTED]> added the comment: https://bugzilla.mozilla.org/show_bug.cgi?id=69230 - it is the same bugreport for other program. It is contain many comments and explains :) __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1794> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1207589] Right Click Context Menu
Nashev added the comment: 1) in file EditorWindow.py 2 editings: a) remove selection-killer command on popup def right_menu_event(self, event): -- self.text.tag_remove("sel", "1.0", "end") b) add ability to make separators in popup menu def make_rmenu(self): rmenu = Menu(self.text, tearoff=0) for label, eventname in self.rmenu_specs: ++ if label != "-": def command(text=self.text, eventname=eventname): text.event_generate(eventname) rmenu.add_command(label=label, command=command) ++ else: ++ rmenu.add_separator() self.rmenu = rmenu 2) in PyShell.py extend rmenu_specs rmenu_specs = [ ++ ("Cut", "<>"), ++ ("Copy", "<>"), ++ ("Paste", "<>"), ++ ("-", ""), ("Set Breakpoint", "<>"), ("Clear Breakpoint", "<>") ] done... And now I can't find easy way to next two desired features: 1) disable cut/copy commands in case no selection (but it is not exists in main menu too) 2) display assigned hot keys in popup menu -- nosy: +Nashev _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1207589> _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1794] Hot keys must work in any keyboard layout
New submission from Nashev: In most platform-depended applications hot keys are working by the specified keys on a keyboard, independent of a current keyboard layout. Not by the specified char. Some application menus is displaying keyboard shortcut localized to main layout for current language. But still working in any layout of keyboard currently selected. IDLE is not. :( Can any one do something with it unpleasant situation? -- components: IDLE, Tkinter messages: 59720 nosy: Nashev severity: normal status: open title: Hot keys must work in any keyboard layout versions: Python 2.5 __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1794> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1794] Hot keys must work in any keyboard layout
Nashev added the comment: Guido, I think now it is must be suggestion to TK team, in they's issue tracker... Raymond, I know I can make try localized hot key mapping for my keyboard layout for my self, but i think the best way is - help to make our public libraries better for all. But any way, Thank You for try solve my local problem. __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1794> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1794] Hot keys must work in any keyboard layout
Nashev added the comment: WOW, so active discussion! OS - Windows & Mac OS X, both Programs - most system and many others. Keyboard layouts - I mean mostly non latin (see http://en.wikipedia.org/wiki/Keyboard_layout#Keyboard_layouts_for_non-Roman_alphabetic_scripts) In case of russian keyboard layout i have in place of latin char 'x' russian letter 'ч', and want to call <> command by pressing this hot key when keyboard really sent to application some like Ctrl+Ч too In Windows we have messages WM_KeyDown and WM_KeyUp that send always key index, stored as constants (defined in windows.h or messages.h) like wk_return, wk_F1, etc. For letter keys, messages come with codes that always equal to index of similar uppercase latin chars. for example, first key code in middle row equal ord ('A') = 65. And in context of russian layout this code translated to Cyrillic letter Ф and sent to window with next message wm_char. Hot key handling based on WM_KeyDown, nor WM_Char P.S.: Samples of localized showing of the hot keys in menu based on interface language or current keyboard layout I can't find right now, but i remember that I have this experience. This is feature not necessary, because reading some like Ctrl+Ч near menu Cut is really frustrating. __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1794> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1721083] Add File - Reload
Nashev added the comment: There are command in menu is called "Revert". P.S.: for knowing that file changed, programs in windows can register OS callback for this event and just react on it. In Mac i think too, but i don't know how with it on unix and python. _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1721083> _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1721083] Add File - Reload
Nashev added the comment: It is very nice feature, that exists in many advanced and professional GUI-based editors on the Windows and Mac. For example, i can fast name TextWrangler, HomeSite, Flash, PhotoShop and it is only first names in mind. It feature for simplify tool's usage, it is improve GUI usability. -- nosy: +Nashev _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1721083> _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1207589] Right Click Context Menu
Nashev added the comment: display assigned hot keys in popup menu is must-have feature, that allow users to teach them while using commands by menu or by context menu. For examples look Delphi IDE -- ___ Python tracker <http://bugs.python.org/issue1207589> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com