mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
8c2e45b8f8
Previously, the Shortcut key was hardcoded as ModCtrl. That patches tries to identify the OS and change the key. Fixes: https://todo.sr.ht/~eliasnaur/gio/624 Signed-off-by: Lucas Rodrigues <inkeliz@inkeliz.com> Signed-off-by: Elias Naur <mail@eliasnaur.com>
13 lines
405 B
Go
13 lines
405 B
Go
// SPDX-License-Identifier: Unlicense OR MIT
|
|
|
|
//go:build !darwin && !js
|
|
package key
|
|
|
|
// ModShortcut is the platform's shortcut modifier, usually the ctrl
|
|
// modifier. On Apple platforms it is the cmd key.
|
|
const ModShortcut = ModCtrl
|
|
|
|
// ModShortcutAlt is the platform's alternative shortcut modifier,
|
|
// usually the ctrl modifier. On Apple platforms it is the alt modifier.
|
|
const ModShortcutAlt = ModCtrl
|