dissent icon indicating copy to clipboard operation
dissent copied to clipboard

[Feature Request] Change keyboard shortcuts to command key on macOS

Open UInt2048 opened this issue 1 year ago • 7 comments

I was very pleased to see this built on macOS (thanks to #66).

Shortcuts like ^P and ^Q would work much better in a macOS context if they were ⌘P and ⌘Q.

Can there be an option to change all control keyboard shortcuts in GTKCord4 with command?

UInt2048 avatar Apr 13 '23 10:04 UInt2048

I'm not even sure what ^P does. I think that might be a GTK thing. ^Q is controlled here along with ^P:

	// main.go
	m.app.AddActionShortcuts(map[string]string{
		"<Ctrl>K": "app.show-qs",
		"<Ctrl>Q": "app.quit",
	})

I'm not too sure which key macOS uses for Command if not Ctrl. Can you check gtk_accelerator_parse and experiment with it?

diamondburned avatar Apr 13 '23 23:04 diamondburned

@diamondburned <Ctrl> is the control key. <Meta> is the command key.

UInt2048 avatar Apr 15 '23 20:04 UInt2048

I'm not even sure what ^P does. I think that might be a GTK thing.

^C and ^P are copy and paste.

UInt2048 avatar Apr 15 '23 21:04 UInt2048