android: add toolbar button to force-show the soft keyboard
Change-Id: I1758f4db7b6894df66d721af77092754b0252100
This commit is contained in:
Binary file not shown.
After Width: | Height: | Size: 2.4 KiB |
@@ -10,6 +10,12 @@
|
||||
android:orderInCategory="100"
|
||||
app:showAsAction="always"/>
|
||||
|
||||
<item android:id="@+id/action_keyboard"
|
||||
android:title="@string/action_keyboard"
|
||||
android:icon="@drawable/ic_format_keyboard_grey600_24dp"
|
||||
android:orderInCategory="100"
|
||||
app:showAsAction="always"/>
|
||||
|
||||
<item android:id="@+id/action_about"
|
||||
android:title="@string/action_about"
|
||||
android:orderInCategory="100" />
|
||||
|
@@ -35,5 +35,6 @@
|
||||
<string name="local_documents">Local documents</string>
|
||||
<string name="local_file_system">Local file system</string>
|
||||
<string name="action_bold">Bold</string>
|
||||
<string name="action_keyboard">Show keyboard</string>
|
||||
|
||||
</resources>
|
||||
|
@@ -79,6 +79,9 @@ public class LibreOfficeMainActivity extends ActionBarActivity {
|
||||
case R.id.action_bold:
|
||||
LOKitShell.sendEvent(new LOEvent(LOEvent.UNO_COMMAND, ".uno:Bold"));
|
||||
return true;
|
||||
case R.id.action_keyboard:
|
||||
showSoftKeyboard();
|
||||
break;
|
||||
case R.id.action_about:
|
||||
mAbout.showAbout();
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user