mirror of
				https://github.com/SimpleMobileTools/Simple-Keyboard.git
				synced 2025-06-05 21:49:26 +02:00 
			
		
		
		
	Always handle key presses
Otherwise there won't be any click feedback when "Show key popup" is disabled
This commit is contained in:
		@@ -753,10 +753,6 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    private fun showPreview(keyIndex: Int) {
 | 
			
		||||
        if (!context.config.showPopupOnKeypress) {
 | 
			
		||||
            return
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        val oldKeyIndex = mCurrentKeyIndex
 | 
			
		||||
        val previewPopup = mPreviewPopup
 | 
			
		||||
        mCurrentKeyIndex = keyIndex
 | 
			
		||||
@@ -784,6 +780,10 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if (!context.config.showPopupOnKeypress) {
 | 
			
		||||
            return
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        // If key changed and preview is on ...
 | 
			
		||||
        if (oldKeyIndex != mCurrentKeyIndex) {
 | 
			
		||||
            if (previewPopup.isShowing) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user