mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Confirm device name with enter key
Use form and submit elements for their built in mouse and keyboard event handlers. // FREEBIE
This commit is contained in:
@@ -63,8 +63,9 @@
|
||||
this.$('#step4 .cancel').click(function(e) {
|
||||
reject();
|
||||
});
|
||||
this.$('#sync').click(function(e) {
|
||||
this.$('#step4').submit(function(e) {
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
var name = this.$('#device-name').val();
|
||||
name = name.replace(/\0/g,''); // strip unicode null
|
||||
if (name.trim().length === 0) {
|
||||
|
||||
Reference in New Issue
Block a user