Skip to content

Commit 06add75

Browse files
committed
wip
1 parent 7134ae1 commit 06add75

File tree

3 files changed

+24
-10
lines changed

3 files changed

+24
-10
lines changed

ghcjs/delivery-calculator/src/App/Widgets/Menu.hs

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,23 @@ menu st =
2828
("flex-wrap", "wrap")
2929
]
3030
]
31-
[ li_ [onClick opened] [text "menu"],
31+
[ li_
32+
[ role_ "button",
33+
onClick opened
34+
]
35+
[ text "menu"
36+
],
3237
li_
33-
[ onClick . PushUpdate . Instant . ImpureUpdate $ do
38+
[ role_ "button",
39+
onClick . PushUpdate . Instant . ImpureUpdate $ do
3440
doc <- liftIO newSt
3541
pure $ #modelState .~ doc
3642
]
3743
[ text "Delivery Calculator"
3844
],
3945
li_
40-
[ onClick
46+
[ role_ "button",
47+
onClick
4148
. PushUpdate
4249
. Instant
4350
. PureUpdate
@@ -47,7 +54,8 @@ menu st =
4754
[ text "favorite"
4855
],
4956
li_
50-
[ onClick
57+
[ role_ "button",
58+
onClick
5159
. PushUpdate
5260
. Instant
5361
. ImpureUpdate
@@ -58,7 +66,8 @@ menu st =
5866
[ text "print"
5967
],
6068
li_
61-
[ onClick
69+
[ role_ "button",
70+
onClick
6271
. PushUpdate
6372
. Instant
6473
. ImpureUpdate
@@ -72,7 +81,8 @@ menu st =
7281
[ text "download"
7382
],
7483
li_
75-
[ onClick
84+
[ role_ "button",
85+
onClick
7686
. PushUpdate
7787
. Instant
7888
. Jsm.shareText

ghcjs/miso-functora/src/Functora/Miso/Prelude.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module Functora.Miso.Prelude
22
( module X,
33
consoleLog,
4+
role_,
45
)
56
where
67

@@ -25,3 +26,6 @@ import qualified Miso
2526

2627
consoleLog :: (Show a, Data a) => a -> JSM ()
2728
consoleLog = Miso.consoleLog . inspect @Unicode
29+
30+
role_ :: Unicode -> Attribute action
31+
role_ = textProp "role"

nix/configuration.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -751,10 +751,10 @@ in {
751751
bindsym Mod4+Shift+u mode mouse
752752
mode mouse {
753753
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'
758758
759759
bindsym n exec '${ydotool} mousemove -w -- -1 0'
760760
bindsym m exec '${ydotool} mousemove -w -- 0 -1'

0 commit comments

Comments
 (0)