Skip to content

Commit 8b45a75

Browse files
author
Vasyl Vavrychuk
committed
fixed space bar alignment
1 parent 046dc74 commit 8b45a75

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

web/keyboard.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
.ui-keyboard-button-endrow { clear: left; }
88
.ui-keyboard-widekey { min-width: 4em; width: auto; }
99
.ui-keyboard-space { width: 15em; }
10-
.ui-keyboard-space span, .ui-keyboard-empty span { font: 0/0 a; text-shadow: none; color: transparent; } /* see http://nicolasgallagher.com/another-css-image-replacement-technique/ */
10+
.ui-keyboard-space span, .ui-keyboard-empty span { text-shadow: none; color: transparent; } /* see http://nicolasgallagher.com/another-css-image-replacement-technique/ */
1111
.ui-keyboard-preview-wrapper { text-align: center; }
1212
.ui-keyboard-preview { text-align: left; margin: 0 0 3px 0; display: inline; width: 99%;} /* width is calculated in IE, since 99% = 99% full browser width =( */
1313
.ui-keyboard-keyset { text-align: center; white-space: nowrap; }

web/webdriver-app.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,7 @@ function VirtualKeyboardWidget() {
512512
KEY_BKSP = 'Bksp',
513513
KEY_TAB = '\u21e5 Tab',
514514
KEY_ENTER = 'Enter',
515+
KEY_SPACE = ' ',
515516
KEY_SHIFT = 'Shift',
516517
KEY_UP = '\u21d1',
517518
KEY_DOWN = '\u21d3',
@@ -523,6 +524,7 @@ function VirtualKeyboardWidget() {
523524
labelToKeyMap[KEY_BKSP] = webdriver.Key.BACK_SPACE;
524525
labelToKeyMap[KEY_TAB] = webdriver.Key.TAB;
525526
labelToKeyMap[KEY_ENTER] = webdriver.Key.ENTER;
527+
labelToKeyMap[KEY_SPACE] = ' ';
526528
labelToKeyMap[KEY_SHIFT] = webdriver.Key.SHIFT;
527529
labelToKeyMap[KEY_UP] = webdriver.Key.UP;
528530
labelToKeyMap[KEY_DOWN] = webdriver.Key.DOWN;
@@ -559,7 +561,7 @@ function VirtualKeyboardWidget() {
559561
'esc': KEY_ESC,
560562
'bksp': KEY_BKSP,
561563
'enter': KEY_ENTER,
562-
'space': ' ',
564+
'space': KEY_SPACE,
563565
'up': KEY_UP,
564566
'left': KEY_LEFT,
565567
'right': KEY_RIGHT,

0 commit comments

Comments
 (0)