diff options
| author | Po Lu | 2023-08-30 10:07:49 +0800 |
|---|---|---|
| committer | Po Lu | 2023-08-30 10:07:49 +0800 |
| commit | 297ccd967f24e37bc51c057da43c862291a55ddd (patch) | |
| tree | 35c7bca464ae2fbf23c46176a698483937ddd51d /src/android.c | |
| parent | 2909ef8d3d73518525ce6a8a3e4f984575300f3b (diff) | |
| download | emacs-297ccd967f24e37bc51c057da43c862291a55ddd.tar.gz emacs-297ccd967f24e37bc51c057da43c862291a55ddd.zip | |
Facilitate typing `C-SPC' on Android
* doc/emacs/android.texi (Android Windowing): Mention C-SPC
interception and how it may be disabled.
* java/org/gnu/emacs/EmacsNative.java (shouldForwardCtrlSpace):
New function.
* java/org/gnu/emacs/EmacsView.java (onKeyPreIme): New function.
If the provided key code is SPC and the event's modifier key
mask contains ControlMask, relay it directly to onKeyDown.
* java/org/gnu/emacs/EmacsWindow.java (eventModifiers): Export
and make static.
* src/android.c (shouldForwardCtrlSpace): New function.
* src/androidfns.c (syms_of_androidfns)
<android_intercept_control_space>: New defvar.
Diffstat (limited to 'src/android.c')
| -rw-r--r-- | src/android.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/android.c b/src/android.c index ed304baf0e6..1ccb724247d 100644 --- a/src/android.c +++ b/src/android.c | |||
| @@ -2267,6 +2267,12 @@ NATIVE_NAME (shouldForwardMultimediaButtons) (JNIEnv *env, | |||
| 2267 | return !android_pass_multimedia_buttons_to_system; | 2267 | return !android_pass_multimedia_buttons_to_system; |
| 2268 | } | 2268 | } |
| 2269 | 2269 | ||
| 2270 | JNIEXPORT jboolean JNICALL | ||
| 2271 | NATIVE_NAME (shouldForwardCtrlSpace) (JNIEnv *env, jobject object) | ||
| 2272 | { | ||
| 2273 | return !android_intercept_control_space; | ||
| 2274 | } | ||
| 2275 | |||
| 2270 | JNIEXPORT void JNICALL | 2276 | JNIEXPORT void JNICALL |
| 2271 | NATIVE_NAME (blitRect) (JNIEnv *env, jobject object, | 2277 | NATIVE_NAME (blitRect) (JNIEnv *env, jobject object, |
| 2272 | jobject src, jobject dest, | 2278 | jobject src, jobject dest, |