1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-12-11 17:57:29 +03:00

Support msisdn signin

Changes from https://github.com/matrix-org/matrix-react-sdk/pull/742
This commit is contained in:
David Baker
2017-03-14 11:50:13 +00:00
parent 925bbb79ad
commit 878413f6a4
12 changed files with 2032 additions and 30 deletions

View File

@@ -27,8 +27,8 @@ import React from 'react';
export default function AccessibleButton(props) {
const {element, onClick, children, ...restProps} = props;
restProps.onClick = onClick;
restProps.onKeyDown = function(e) {
if (e.keyCode == 13 || e.keyCode == 32) return onClick();
restProps.onKeyUp = function(e) {
if (e.keyCode == 13 || e.keyCode == 32) return onClick(e);
};
restProps.tabIndex = restProps.tabIndex || "0";
restProps.role = "button";