Skip to content

Commit

Permalink
fix: Do not move left/right legends with tap
Browse files Browse the repository at this point in the history
  • Loading branch information
caksoylar committed Nov 29, 2024
1 parent 7771694 commit 90dfb48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions keymap_drawer/draw/draw.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,13 @@ def print_key(self, p_key: PhysicalKey, l_key: LayoutKey, key_ind: int) -> None:
legend_type="shifted",
)
self._draw_legend(
tap_shift - Point(w / 2 - self.cfg.inner_pad_w - self.cfg.small_pad, 0),
Point(-w / 2 + self.cfg.inner_pad_w + self.cfg.small_pad, 0),
[l_key.left],
classes=["key", l_key.type],
legend_type="left",
)
self._draw_legend(
tap_shift + Point(w / 2 - self.cfg.inner_pad_w - self.cfg.small_pad, 0),
Point(w / 2 - self.cfg.inner_pad_w - self.cfg.small_pad, 0),
[l_key.right],
classes=["key", l_key.type],
legend_type="right",
Expand Down

0 comments on commit 90dfb48

Please sign in to comment.