I am updating Vault 3 for Android to initiate a search when the user types Enter in the search text box. Here's how I did this:
Here's the code:
searchText = (EditText) findViewById(R.id.SearchText);
...
// Initiate a search when user types ENTER.
searchText.setOnKeyListener(new OnKeyListener() {
public boolean onKey(View v, int keyCode, KeyEvent event) {
boolean result = false;
// If the event is a key-down event on the "enter" button
if (event.getAction() == KeyEvent.ACTION_DOWN && keyCode == KeyEvent.KEYCODE_ENTER && searchButton.isEnabled() && searchButton.getVisibility() == View.VISIBLE) {
searchButton.performClick();
result = true;
}
return result;
}
});

| Title | Date |
| Get JetBrains IDEs to Remember Subversion (SVN) Credentials | November 3, 2026 |
| Converting a Thinkpad from Windows 11 to Linux Mint | October 29, 2026 |
| Raspberry Pi Camera Trap and Animal Detection Program | August 29, 2026 |
| Python Tip: Fix Incorrect Orientation of Digital Photos | August 8, 2026 |
| EBT Weather is now available for Windows and Linux | May 30, 2026 |
| Node.js + Express: How to Block Requests by User-Agent Headers | January 7, 2026 |
| Vault 3 is Now Available for Windows on ARM Machines! | December 13, 2025 |