Adds keyboard access to the finish linking phone button
This commit is contained in:
parent
f7c85432a5
commit
ee4b79120e
4 changed files with 5 additions and 18 deletions
|
@ -29,7 +29,6 @@
|
|||
events: {
|
||||
'click .try-again': 'connect',
|
||||
'click .second': 'shutdown',
|
||||
'click .finish': 'finishLinking',
|
||||
// the actual next step happens in confirmNumber() on submit form #link-phone
|
||||
},
|
||||
initialize(options = {}) {
|
||||
|
@ -180,10 +179,6 @@
|
|||
this.$(DEVICE_NAME_SELECTOR).val(deviceName || window.getHostName());
|
||||
this.$(DEVICE_NAME_SELECTOR).focus();
|
||||
},
|
||||
finishLinking() {
|
||||
// We use a form so we get submit-on-enter behavior
|
||||
this.$('#link-phone').submit();
|
||||
},
|
||||
confirmNumber() {
|
||||
const tsp = textsecure.storage.protocol;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue