Made keyboard navigation /todo/ for password modal

pull/726/head
Vincent 5 years ago
parent 010cf045cb
commit 9ee87cc49a

@ -31,7 +31,6 @@ export class SessionPasswordModal extends React.Component<Props, State> {
this.setPassword = this.setPassword.bind(this);
this.closeDialog = this.closeDialog.bind(this);
this.onEnter = this.onEnter.bind(this);
}
public render() {
@ -172,14 +171,6 @@ export class SessionPasswordModal extends React.Component<Props, State> {
this.closeDialog();
}
private onEnter(event: any) {
if (event.key === 'Enter') {
//if ($('#server-url').is(':focus')) {
//this.showView('connecting');
//}
}
}
private closeDialog() {
window.removeEventListener('keyup', this.onEnter);

Loading…
Cancel
Save