Keyboard goes up when returning from background, volume buttons stop working, Is there a bug in Cocos2dxEditText?

Hi, I’m having 2 problems in android game using cocos2dx, the problems are as follows:
1.when the applications is returned from background the soft keyboard goes up for no obvious reason.
2.the mute buttons stops working after the main activity returns from a pop up ad.
I found a work around for the first issue by adding :
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
in my onCreate(), but I believe now that the cause for the 2 problems is the same and I’m trying to figure out the cause.
After debugging the second issue I found that when the activity goes up for the first time the function onKeyDown is called in the class Cocos2dxGLSurfaceView, but for some reason after returning from the popup ad the onkeyDown is called from Cocos2dxEditText, and there the code looks as follows:

public boolean onKeyDown(final int pKeyCode, final KeyEvent pKeyEvent) {
super.onKeyDown(pKeyCode, pKeyEvent);

/* Let GlSurfaceView get focus if back key is input. */
if (pKeyCode == KeyEvent.KEYCODE_BACK) {
	this.mCocos2dxGLSurfaceView.requestFocus();
	}

return true;

}

which explains the problem since the function returns true which mean the key press is handled, changing the code to the following :

public boolean onKeyDown(final int pKeyCode, final KeyEvent pKeyEvent) {
/* Let GlSurfaceView get focus if back key is input. */
if (pKeyCode == KeyEvent.KEYCODE_BACK) {
this.mCocos2dxGLSurfaceView.requestFocus();
return true;
}

return super.onKeyDown(pKeyCode, pKeyEvent);

}

solved the problem, is this a possible cocos2dx bug or is there a reason for this?
What I’m still trying to figure out why when returning from background the method is called from cocos2dxEditText and not inside the cocos2dxGLSurfaceView, I assume it has to do with view focus, for some reason the editText gets focus, but why?
Btw I don’t even have text fields in my applications, its a part the view in cocos2dxActivity.

I would appreciate some help in solving this and especially understanding why the cocos2dxEditText view gets focus when returning from another activity or from background.
I could find anywhere in the code that calls requestFocus() on this view.

Thanks in advance

Amit