Skip to content
Discussion options

You must be logged in to vote

Hi, thanks for bringing this up!

There is one bug here in GirCore. The call to ShortcutTrigger.ParseString("<Enter>") should return null which it does not. It should return null because "<Enter>" is not a valid option (at least on my system). I don't know how to make this specific sample work as I'm not a GTK expert. Please check the GTK documentation or ask in the official support channels.

I opened bug #1601 for the constructor issue so the next GirCore release will contain the bugfix.

I made a similar sample to your code which output "execute program here" if you press enter in a given window with a shortcutcontroller though:

using System;
using Gtk;

var application = Adw.Application.New

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Winver10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants