Skip to content

Commit

Permalink
fix(Keyboard): make row render when key is empty (#472)
Browse files Browse the repository at this point in the history
* fix(Keyboard): when empty key, make row render

* fix(KeyboardInput): updating snapshot

* fix(Keyboard): removing testing code

* fix(KeybaordQwerty): making shift an xl size key
  • Loading branch information
slhay28 authored Feb 22, 2024
1 parent b77db31 commit 334bf88
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 123 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,12 @@ export default class Keyboard extends Base {
_createKeys(keys = [], keyboard) {
return keys.map(keyProps => {
if (!keyProps) {
return { skipFocus: true };
return {
type: this.keyComponent || Key, // allows use of a custom Key component if specified
keySpacing: this.style.keySpacing,
skipFocus: true,
alpha: 0.01
};
}

const key = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,28 +307,12 @@ export default class KeyboardEmail extends Keyboard {
'û',
'ã',
'ñ',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
{ title: '_', announce: 'underscore, button' },
{ title: '.', announce: 'period, button' },
{ title: '-', announce: 'dash, button' },
{
title: 'shift',
size: 'md',
size: 'xl',
toggle: 'accentsUpper',
announce: 'shift off, button',
keyId: 'shift'
Expand Down Expand Up @@ -425,28 +409,12 @@ export default class KeyboardEmail extends Keyboard {
'Û',
'Ã',
'Ñ',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
{ title: '_', announce: 'underscore, button' },
{ title: '.', announce: 'period, button' },
{ title: '-', announce: 'dash, button' },
{ title: '_', announce: 'underscore, button' },
{
title: 'shift',
size: 'md',
size: 'xl',
toggle: 'accents',
announce: 'shift off, button',
keyId: 'shift'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,28 +291,12 @@ export default class KeyboardQwerty extends Keyboard {
'û',
'ã',
'ñ',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
{ title: '_', announce: 'underscore, button' },
{ title: '.', announce: 'period, button' },
{ title: '-', announce: 'dash, button' },
{
title: 'shift',
size: 'md',
size: 'xl',
toggle: 'accentsUpper',
announce: 'shift off, button',
keyId: 'shift'
Expand Down Expand Up @@ -401,28 +385,12 @@ export default class KeyboardQwerty extends Keyboard {
'Û',
'Ã',
'Ñ',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
{ title: '.', announce: 'period, button' },
{ title: '-', announce: 'dash, button' },
{ title: '_', announce: 'underscore, button' },
{
title: 'shift',
size: 'md',
size: 'xl',
toggle: 'accents',
announce: 'shift off, button',
keyId: 'shift'
Expand Down
Loading

0 comments on commit 334bf88

Please sign in to comment.