Skip to content

Commit 7695a4d

Browse files
committed
Release v0.3.12
1 parent 6f5a560 commit 7695a4d

2 files changed

Lines changed: 91 additions & 2 deletions

File tree

lib/Keyboard.scss

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
.keyboard {
2+
width: 100%;
3+
max-width: 1030px;
4+
margin: 0 auto;
5+
background: #dadada;
6+
box-shadow: 0 2px 12px 0 rgba(0,0,0,0.5);
7+
}
8+
9+
.keyboard-wrapper {
10+
position:fixed;
11+
bottom: 0;
12+
z-index: 10000;
13+
width: 700px;
14+
left: calc(50% - 350px);
15+
16+
.keyboard-row {
17+
display: flex;
18+
}
19+
}
20+
21+
.keyboard-button {
22+
display: flex;
23+
justify-content: space-around;
24+
align-items: center;
25+
flex-basis: 100px;
26+
font-size: 18px;
27+
height: 60px;
28+
border-radius: 4px;
29+
background-color: #F5F5F5;
30+
border: 1px solid #CECECE;
31+
font-family: 'Roboto', sans-serif;
32+
font-weight: 300;
33+
34+
&:focus {
35+
outline: none;
36+
}
37+
38+
&:disabled {
39+
opacity: 0.4;
40+
cursor: default;
41+
}
42+
43+
&:disabled {
44+
opacity: 0.4;
45+
cursor: default;
46+
}
47+
48+
&:active {
49+
background-color: #cccccc;
50+
}
51+
52+
&.shift-symbols {
53+
flex-basis: 210px;
54+
}
55+
56+
&.keyboard-numberButton {
57+
flex-grow: 1;
58+
}
59+
60+
&.keyboard-halfButton {
61+
flex-basis: 56px;
62+
}
63+
64+
&.keyboard-space {
65+
flex-grow: 1;
66+
}
67+
68+
// TODO Should be remove?
69+
&.keyboard-utilButton {
70+
flex-grow: 2;
71+
max-width: 55px;
72+
}
73+
74+
// TODO Should be remove?
75+
&.keyboard-additionalButton {
76+
flex-basis: 128px;
77+
}
78+
79+
&.keyboard-submitButton, &.keyboard-submit-button {
80+
flex-basis: 95px;
81+
background-color: #63b324;
82+
border-color: #63b324;
83+
color: #ffffff;
84+
}
85+
}
86+
87+
// TODO Should be remove?
88+
.keyboard-keysSet {
89+
display: flex;
90+
flex-grow: 1;
91+
}

lib/KeyboardedInput.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@ var KeyboardedInput = function (_React$Component) {
9090
value: function handleFocusLost() {
9191
var that = this;
9292
setTimeout(function () {
93-
// console.error(document.activeElement.classList);
94-
console.error(window.event);
9593
if (!document.activeElement.classList.contains('keyboard-button') && !document.activeElement.classList.contains('keyboard') && !document.activeElement.classList.contains('keyboard-row') && !document.activeElement.classList.contains('react-draggable-transparent-selection')) {
9694
that.setState(_extends({}, that.state, { showKeyboard: false }));
9795
}

0 commit comments

Comments
 (0)