The current behaviour of the 'enter' key when focus is within the EditText of SearchView is to attempt to render a protein with PDB ID of the EditText's current content. For example, if a user enters 'cro dimer' into the EditText and hits 'enter' on the soft keyboard, Palantir will attempt to render the protein with the PDB ID 'cro dimer'---which clearly does not exist. This behaviour is unintuitive.
Instead, the 'enter' should execute a text search, then render the first result of said text search. Palantir should only take the search query as PDB ID when it is in the form of a PDB ID. That is,
If search query matches regex \d[A-Za-z]{3}, then try to render the protein with PDB ID equal the search query.
Otherwise, do a text search. If there are results, render the first hit. Otherwise, show an error in the status line.
The current behaviour of the 'enter' key when focus is within the EditText of SearchView is to attempt to render a protein with PDB ID of the EditText's current content. For example, if a user enters 'cro dimer' into the EditText and hits 'enter' on the soft keyboard, Palantir will attempt to render the protein with the PDB ID 'cro dimer'---which clearly does not exist. This behaviour is unintuitive.
Instead, the 'enter' should execute a text search, then render the first result of said text search. Palantir should only take the search query as PDB ID when it is in the form of a PDB ID. That is,
\d[A-Za-z]{3}
, then try to render the protein with PDB ID equal the search query.