Skip to content

Commit

Permalink
ui.backend.cocoa.views: Don't throw an error on weird mouse buttons. F…
Browse files Browse the repository at this point in the history
…ixes factor#1453.
  • Loading branch information
erg committed Aug 19, 2015
1 parent ac5da31 commit 3649dd2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions basis/ui/backend/cocoa/views/views.factor
Expand Up @@ -14,12 +14,14 @@ IN: ui.backend.cocoa.views
[ mouse-location ] [ drop window ] 2bi
[ move-hand fire-motion yield ] [ drop ] if* ;

! Issue #1453
: button ( event -- n )
#! Cocoa -> Factor UI button mapping
-> buttonNumber {
{ 0 [ 1 ] }
{ 1 [ 3 ] }
{ 2 [ 2 ] }
[ ]
} case ;

CONSTANT: modifiers
Expand Down

0 comments on commit 3649dd2

Please sign in to comment.