Re: [racket-users] keyboard shortcuts in a popup menu
Thanks. I guess the point of having keyboard shortcuts in popup menus is just to display them to remind the user what they are. At this point, I plan to follow the practice of having everything from the popups also in a main menu bar in every platform. So really, the glitch failing to display a '#\backspace' shortcut in Linux is the serious one in terms of practicality. On Jan 22, 2020, at 5:42 PM, George Neuner wrote: > > On 1/22/2020 4:44 PM, James Platt wrote: >> I'm working on some GUI code and I am seeing some glitches with keyboard >> shortcuts in popup menus. I wonder if others are seeing the same things. >> >> In Racket 7.5 on macOS 10.11.6 "El Captian": >> Shortcuts defined in a menu-item% in a popup menu don't work unless the >> popup menu is displayed. In other words, you have to right click first and >> then the shortcut will work while the menu is open. This isn't a big deal >> if you are working according to Apple's human interface guidelines because >> all items in popup menus are also supposed to be in the main menu bar [1]. >> Still, it seems like this should work on it's own. > > It's pretty standard across platforms for popup windows (any kind) to become > inactive when they are hidden. In most windowing systems it is possible to > override that behavior and keep a window active even when not shown, but I > haven't worked with Macs since MultiFinder so I can't guide you as to how to > do it there. > > >> In Racket 7.5 on Linux Mint 19.1 (Racket installed with the Ubuntu PPA): >> The shortcuts don't work at all, whether the popup is displayed or not. >> Also a keyboard shortcut defined with '#\backspace' does not display in the >> popup. This is supposed to be ctl-backspace on Linux and Windows and >> command-delete on macOS. The macOS version works but not the Linux version. >> I haven't tested with Windows. > > This sounds like a bug. > > >> James >> >> [1] >> https://developer.apple.com/design/human-interface-guidelines/macos/menus/contextual-menus/ > > George > -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/DD9915CE-FF87-4782-9DEF-EF07C5B2EB50%40biomantica.com.
Re: [racket-users] keyboard shortcuts in a popup menu
On 1/22/2020 4:44 PM, James Platt wrote: I'm working on some GUI code and I am seeing some glitches with keyboard shortcuts in popup menus. I wonder if others are seeing the same things. In Racket 7.5 on macOS 10.11.6 "El Captian": Shortcuts defined in a menu-item% in a popup menu don't work unless the popup menu is displayed. In other words, you have to right click first and then the shortcut will work while the menu is open. This isn't a big deal if you are working according to Apple's human interface guidelines because all items in popup menus are also supposed to be in the main menu bar [1]. Still, it seems like this should work on it's own. It's pretty standard across platforms for popup windows (any kind) to become inactive when they are hidden. In most windowing systems it is possible to override that behavior and keep a window active even when not shown, but I haven't worked with Macs since MultiFinder so I can't guide you as to how to do it there. In Racket 7.5 on Linux Mint 19.1 (Racket installed with the Ubuntu PPA): The shortcuts don't work at all, whether the popup is displayed or not. Also a keyboard shortcut defined with '#\backspace' does not display in the popup. This is supposed to be ctl-backspace on Linux and Windows and command-delete on macOS. The macOS version works but not the Linux version. I haven't tested with Windows. This sounds like a bug. James [1] https://developer.apple.com/design/human-interface-guidelines/macos/menus/contextual-menus/ George -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/d40267d2-f8f3-3083-c8ec-b2ae3d099d32%40comcast.net.
[racket-users] keyboard shortcuts in a popup menu
I'm working on some GUI code and I am seeing some glitches with keyboard shortcuts in popup menus. I wonder if others are seeing the same things. In Racket 7.5 on macOS 10.11.6 "El Captian": Shortcuts defined in a menu-item% in a popup menu don't work unless the popup menu is displayed. In other words, you have to right click first and then the shortcut will work while the menu is open. This isn't a big deal if you are working according to Apple's human interface guidelines because all items in popup menus are also supposed to be in the main menu bar [1]. Still, it seems like this should work on it's own. In Racket 7.5 on Linux Mint 19.1 (Racket installed with the Ubuntu PPA): The shortcuts don't work at all, whether the popup is displayed or not. Also a keyboard shortcut defined with '#\backspace' does not display in the popup. This is supposed to be ctl-backspace on Linux and Windows and command-delete on macOS. The macOS version works but not the Linux version. I haven't tested with Windows. James [1] https://developer.apple.com/design/human-interface-guidelines/macos/menus/contextual-menus/ -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/3926FF2E-DCAB-421D-8EE3-7B4DF5671033%40biomantica.com.