File tree Expand file tree Collapse file tree 3 files changed +24
-10
lines changed
delivery-calculator/src/App/Widgets
miso-functora/src/Functora/Miso Expand file tree Collapse file tree 3 files changed +24
-10
lines changed Original file line number Diff line number Diff line change @@ -28,16 +28,23 @@ menu st =
28
28
(" flex-wrap" , " wrap" )
29
29
]
30
30
]
31
- [ li_ [onClick opened] [text " menu" ],
31
+ [ li_
32
+ [ role_ " button" ,
33
+ onClick opened
34
+ ]
35
+ [ text " menu"
36
+ ],
32
37
li_
33
- [ onClick . PushUpdate . Instant . ImpureUpdate $ do
38
+ [ role_ " button" ,
39
+ onClick . PushUpdate . Instant . ImpureUpdate $ do
34
40
doc <- liftIO newSt
35
41
pure $ # modelState .~ doc
36
42
]
37
43
[ text " Delivery Calculator"
38
44
],
39
45
li_
40
- [ onClick
46
+ [ role_ " button" ,
47
+ onClick
41
48
. PushUpdate
42
49
. Instant
43
50
. PureUpdate
@@ -47,7 +54,8 @@ menu st =
47
54
[ text " favorite"
48
55
],
49
56
li_
50
- [ onClick
57
+ [ role_ " button" ,
58
+ onClick
51
59
. PushUpdate
52
60
. Instant
53
61
. ImpureUpdate
@@ -58,7 +66,8 @@ menu st =
58
66
[ text " print"
59
67
],
60
68
li_
61
- [ onClick
69
+ [ role_ " button" ,
70
+ onClick
62
71
. PushUpdate
63
72
. Instant
64
73
. ImpureUpdate
@@ -72,7 +81,8 @@ menu st =
72
81
[ text " download"
73
82
],
74
83
li_
75
- [ onClick
84
+ [ role_ " button" ,
85
+ onClick
76
86
. PushUpdate
77
87
. Instant
78
88
. Jsm. shareText
Original file line number Diff line number Diff line change 1
1
module Functora.Miso.Prelude
2
2
( module X ,
3
3
consoleLog ,
4
+ role_ ,
4
5
)
5
6
where
6
7
@@ -25,3 +26,6 @@ import qualified Miso
25
26
26
27
consoleLog :: (Show a , Data a ) => a -> JSM ()
27
28
consoleLog = Miso. consoleLog . inspect @ Unicode
29
+
30
+ role_ :: Unicode -> Attribute action
31
+ role_ = textProp " role"
Original file line number Diff line number Diff line change @@ -751,10 +751,10 @@ in {
751
751
bindsym Mod4+Shift+u mode mouse
752
752
mode mouse {
753
753
754
- bindsym h exec '${ ydotool } mousemove -x -20 -y 0'
755
- bindsym j exec '${ ydotool } mousemove -x 0 -y 20 '
756
- bindsym k exec '${ ydotool } mousemove -x 0 -y -20 '
757
- bindsym l exec '${ ydotool } mousemove -x 20 -y 0'
754
+ bindsym h exec '${ ydotool } mousemove -x -35 -y 0'
755
+ bindsym j exec '${ ydotool } mousemove -x 0 -y 35 '
756
+ bindsym k exec '${ ydotool } mousemove -x 0 -y -35 '
757
+ bindsym l exec '${ ydotool } mousemove -x 35 -y 0'
758
758
759
759
bindsym n exec '${ ydotool } mousemove -w -- -1 0'
760
760
bindsym m exec '${ ydotool } mousemove -w -- 0 -1'
You can’t perform that action at this time.
0 commit comments