Skip to content

Commit

Permalink
Adjust key width and padding to use true values in KeymanWeb.
Browse files Browse the repository at this point in the history
  • Loading branch information
eddieantonio committed Oct 7, 2019
1 parent 7b9e11c commit 2dd2d05
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions release/nrc/nrc_crk_cans/extras/generate-touch-layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@

# Keyman defines each key's width as being 100 units.
# The default padding is 5 units.
SLOT_WIDTH = 105 # How much width each "slot" occupies
PADDING_BETWEEN = 5 # How much of the slot is just the padding.
SLOT_WIDTH = 115 # How much width each "slot" occupies
PADDING_BETWEEN = 15 # How much of the slot is just the padding.
KEY_WIDTH = SLOT_WIDTH - PADDING_BETWEEN # How much of the slot is the key itself

# Key types
Expand Down Expand Up @@ -189,6 +189,7 @@ def dictionary_for_key(self):
)
if self.proportional_width > 1:
key.update(width=self.effective_width)

return key

@property
Expand Down
1 change: 1 addition & 0 deletions release/nrc/nrc_crk_cans/nrc_crk_cans.kpj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<CompilerWarningsAsErrors>True</CompilerWarningsAsErrors>
<WarnDeprecatedCode>True</WarnDeprecatedCode>
<CheckFilenameConventions>True</CheckFilenameConventions>
<ProjectType>keyboard</ProjectType>
</Options>
<Files>
<File>
Expand Down

0 comments on commit 2dd2d05

Please sign in to comment.