Merge branch 'citra-emu:master' into vulkan-2
This commit is contained in:
@ -1,6 +1,8 @@
|
|||||||
package org.citra.citra_emu.ui;
|
package org.citra.citra_emu.ui;
|
||||||
|
|
||||||
|
import android.content.Context;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
|
import android.view.inputmethod.InputMethodManager;
|
||||||
|
|
||||||
import androidx.activity.OnBackPressedCallback;
|
import androidx.activity.OnBackPressedCallback;
|
||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
@ -32,6 +34,13 @@ public class TwoPaneOnBackPressedCallback extends OnBackPressedCallback
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onPanelClosed(@NonNull View panel) {
|
public void onPanelClosed(@NonNull View panel) {
|
||||||
|
closeKeyboard();
|
||||||
setEnabled(false);
|
setEnabled(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void closeKeyboard() {
|
||||||
|
InputMethodManager manager = (InputMethodManager) mSlidingPaneLayout.getContext()
|
||||||
|
.getSystemService(Context.INPUT_METHOD_SERVICE);
|
||||||
|
manager.hideSoftInputFromWindow(mSlidingPaneLayout.getRootView().getWindowToken(), 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -264,6 +264,9 @@
|
|||||||
<property name="text">
|
<property name="text">
|
||||||
<string>About Citra</string>
|
<string>About Citra</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="menuRole">
|
||||||
|
<enum>QAction::AboutRole</enum>
|
||||||
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="action_Single_Window_Mode">
|
<action name="action_Single_Window_Mode">
|
||||||
<property name="checkable">
|
<property name="checkable">
|
||||||
@ -287,6 +290,9 @@
|
|||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Configure...</string>
|
<string>Configure...</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="menuRole">
|
||||||
|
<enum>QAction::PreferencesRole</enum>
|
||||||
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="action_Cheats">
|
<action name="action_Cheats">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
@ -549,6 +555,9 @@
|
|||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Configure Current Game...</string>
|
<string>Configure Current Game...</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="menuRole">
|
||||||
|
<enum>QAction::NoRole</enum>
|
||||||
|
</property>
|
||||||
</action>
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
<resources/>
|
<resources/>
|
||||||
|
Reference in New Issue
Block a user