apps/gophers: update to latest gio version and use Modifiers.Contain

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-06-18 21:32:44 +02:00
parent 7354874bb5
commit 0e332f8d65
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ module gioui.org/apps
go 1.12
require (
gioui.org/ui v0.0.0-20190611143543-503c41754490
gioui.org/ui v0.0.0-20190618193019-7354874bb5bc
github.com/google/go-github/v24 v24.0.1
golang.org/x/exp v0.0.0-20190321205749-f0864edee7f3
golang.org/x/image v0.0.0-20190321063152-3fc05d484e9f
+1 -1
View File
@@ -183,7 +183,7 @@ func (a *App) run() error {
case key.NameEscape:
os.Exit(0)
case 'P':
if e.Modifiers&key.ModCommand != 0 {
if e.Modifiers.Contain(key.ModCommand) {
a.w.Profiling = !a.w.Profiling
}
}