handleFindPrevious(searchType) {
		const inputElement = document.getElementById(`hexedit-search-${searchType}`);
		const currentPattern = inputElement.value.trim();

		// Check if the search pattern has changed
		if (this.lastSearchPatterns[searchType] !== currentPattern) {
			// Update the last search pattern
			this.lastSearchPatterns[searchType] = currentPattern;

			// Set the current search type and active view
			this.currentSearchType = searchType;
			this.activeView = (searchType === 'hex') ? 'hex' : 'text';

			// Perform search
			this.performSearch(searchType);
		} else {
			// If the search pattern has not changed, just go to the previous match
			if (this.currentSearchType === searchType && this.matches.length > 0) {
				// Set activeView based on currentSearchType
				this.activeView = (this.currentSearchType === 'hex') ? 'hex' : 'text';

				// Navigate to the previous match relative to the current cursor position
				const cursorPosition = this.selectedIndex !== null ? this.selectedIndex : this.data.length;
				const prevMatchIndex = this.findPreviousMatch(cursorPosition);
				if (prevMatchIndex !== -1) {
					this.navigateToMatch(prevMatchIndex);
				} else {
					// If there is no previous match, go to the last one
					this.navigateToMatch(this.matches.length - 1);
				}
			}
		}
	}
Handles the "Find Previous" button click for a specific search type.

@param {string} searchType - The type of search ('ascii', 'hex', 'regex').