mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 10:25:37 +00:00
io/key: delete Event.String
The String method doesn't add anything in addition to the default Go formatting of the type. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -11,7 +11,6 @@ package key
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"fmt"
|
|
||||||
"math"
|
"math"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
@@ -367,10 +366,6 @@ func (FocusEvent) ImplementsEvent() {}
|
|||||||
func (SnippetEvent) ImplementsEvent() {}
|
func (SnippetEvent) ImplementsEvent() {}
|
||||||
func (SelectionEvent) ImplementsEvent() {}
|
func (SelectionEvent) ImplementsEvent() {}
|
||||||
|
|
||||||
func (e Event) String() string {
|
|
||||||
return fmt.Sprintf("%v %v %v}", e.Name, e.Modifiers, e.State)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m Modifiers) String() string {
|
func (m Modifiers) String() string {
|
||||||
var strs []string
|
var strs []string
|
||||||
if m.Contain(ModCtrl) {
|
if m.Contain(ModCtrl) {
|
||||||
|
|||||||
Reference in New Issue
Block a user