From 9c59612e080cc5f8119c189c6399ab6554395177 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Thu, 14 Apr 2022 11:48:55 +0200 Subject: [PATCH] io/key: change Modifiers.String separator to "-" We're about the express sets of key combinations as - where modifiers are separated by dashes as well. To make Modifers.String useful for expressing key sets, change its separator to "-". Signed-off-by: Elias Naur --- io/key/key.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io/key/key.go b/io/key/key.go index 7e5d1d10..ceaea426 100644 --- a/io/key/key.go +++ b/io/key/key.go @@ -276,7 +276,7 @@ func (m Modifiers) String() string { if m.Contain(ModSuper) { strs = append(strs, NameSuper) } - return strings.Join(strs, "|") + return strings.Join(strs, "-") } func (s State) String() string {