You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While the GTK backend can handle letter command shortcuts like Ctrl+L quite well, I'm unable to use Key.MOD_1+Key.SEMICOLON, Key.MOD_1+Key.PAGE_UP, Key.MOD_1+key.SPACE etc.
Steps to reproduce
Run the Example Greeter app code below
See the terminal output, Ctrl+; is also not visible in the Commands menu on the Greet command as a hint and can not be used to trigger the command.
(main.py:619420): Gtk-WARNING **: 20:31:22.372: Unable to parse accelerator '<Primary>;': ignored request to install 1 accelerators
(main.py:619420): Gtk-WARNING **: 20:31:22.408: Unable to parse accelerator '<Primary>;': ignored request to install 1 accelerators
Expected behavior
The shortcut should be registered properly and usable to activate its command, or, if this is not possible, the working / not working characters should be mentioned in the documentation.
Screenshots
No response
Environment
Operating System: Ubuntu Mate 22.04 64-bit
Python version: 3.10
Software versions:
Toga: 0.4.2
Logs
Additional context
The Greeter app code (a simple app that shows a greeting info_dialog upon activation of greet command:
import toga
from toga import Box, Command, Key
def greet(sender):
app.main_window.info_dialog("Greeting", "Hello!",)
def build(app):
app.commands.add(Command(greet,
text="Greet",
shortcut=Key.MOD_1+Key.SEMICOLON,
))
return Box()
app=toga.App("Greeter", "com.example.greeter", startup=build)
app.main_loop()
The text was updated successfully, but these errors were encountered:
Thanks for the report. Looking at the code, this all fell into a big "TODO" block of code. The fix for GTK was relatively straightforward, but Winforms had similar omissions, and Cocoa had a couple of errors.
Describe the bug
While the GTK backend can handle letter command shortcuts like Ctrl+L quite well, I'm unable to use Key.MOD_1+Key.SEMICOLON, Key.MOD_1+Key.PAGE_UP, Key.MOD_1+key.SPACE etc.
Steps to reproduce
Expected behavior
The shortcut should be registered properly and usable to activate its command, or, if this is not possible, the working / not working characters should be mentioned in the documentation.
Screenshots
No response
Environment
Logs
Additional context
The Greeter app code (a simple app that shows a greeting info_dialog upon activation of greet command:
The text was updated successfully, but these errors were encountered: