aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/android.c9
-rw-r--r--src/androidfns.c11
-rw-r--r--src/keyboard.c5
3 files changed, 25 insertions, 0 deletions
diff --git a/src/android.c b/src/android.c
index e39c34136de..79598ab86df 100644
--- a/src/android.c
+++ b/src/android.c
@@ -2825,6 +2825,15 @@ NATIVE_NAME (sendExpose) (JNIEnv *env, jobject object,
2825 return event_serial; 2825 return event_serial;
2826} 2826}
2827 2827
2828JNIEXPORT jboolean JNICALL
2829NATIVE_NAME (shouldForwardMultimediaButtons) (JNIEnv *env,
2830 jobject object)
2831{
2832 /* Yes, android_pass_multimedia_buttons_to_system is being
2833 read from the UI thread. */
2834 return !android_pass_multimedia_buttons_to_system;
2835}
2836
2828/* Forward declarations of deadlock prevention functions. */ 2837/* Forward declarations of deadlock prevention functions. */
2829 2838
2830static void android_begin_query (void); 2839static void android_begin_query (void);
diff --git a/src/androidfns.c b/src/androidfns.c
index 589ae4331cb..e1d423ab3eb 100644
--- a/src/androidfns.c
+++ b/src/androidfns.c
@@ -3075,6 +3075,17 @@ syms_of_androidfns (void)
3075 doc: /* SKIP: real doc in xfns.c. */); 3075 doc: /* SKIP: real doc in xfns.c. */);
3076 Vx_max_tooltip_size = Qnil; 3076 Vx_max_tooltip_size = Qnil;
3077 3077
3078 DEFVAR_BOOL ("android-pass-multimedia-buttons-to-system",
3079 android_pass_multimedia_buttons_to_system,
3080 doc: /* Whether or not to pass volume control buttons to the system.
3081Generally, the `volume-up', `volume-down' and `volume-mute' keys are
3082processed by Emacs, but setting this to non-nil they are passed to the
3083operating system instead of being intercepted by Emacs.
3084
3085Note that if you set this, you will no longer be able to quit Emacs
3086using the volume down button. */);
3087 android_pass_multimedia_buttons_to_system = false;
3088
3078 /* Functions defined. */ 3089 /* Functions defined. */
3079 defsubr (&Sx_create_frame); 3090 defsubr (&Sx_create_frame);
3080 defsubr (&Sxw_color_defined_p); 3091 defsubr (&Sxw_color_defined_p);
diff --git a/src/keyboard.c b/src/keyboard.c
index a38c7394543..0a74b435f0e 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -4972,6 +4972,7 @@ const char *const lispy_function_keys[] =
4972 [111] = "escape", 4972 [111] = "escape",
4973 [112] = "delete", 4973 [112] = "delete",
4974 [121] = "break", 4974 [121] = "break",
4975 [120] = "sysrq",
4975 [122] = "home", 4976 [122] = "home",
4976 [123] = "end", 4977 [123] = "end",
4977 [124] = "insert", 4978 [124] = "insert",
@@ -4988,6 +4989,7 @@ const char *const lispy_function_keys[] =
4988 [141] = "f11", 4989 [141] = "f11",
4989 [142] = "f12", 4990 [142] = "f12",
4990 [160] = "kp-ret", 4991 [160] = "kp-ret",
4992 [164] = "volume-mute",
4991 [19] = "up", 4993 [19] = "up",
4992 [20] = "down", 4994 [20] = "down",
4993 [213] = "muhenkan", 4995 [213] = "muhenkan",
@@ -4996,6 +4998,8 @@ const char *const lispy_function_keys[] =
4996 [218] = "kana", 4998 [218] = "kana",
4997 [21] = "left", 4999 [21] = "left",
4998 [22] = "right", 5000 [22] = "right",
5001 [24] = "volume-up",
5002 [25] = "volume-down",
4999 [259] = "help", 5003 [259] = "help",
5000 [268] = "kp-up-left", 5004 [268] = "kp-up-left",
5001 [269] = "kp-down-left", 5005 [269] = "kp-down-left",
@@ -5010,6 +5014,7 @@ const char *const lispy_function_keys[] =
5010 [66] = "return", 5014 [66] = "return",
5011 [67] = "backspace", 5015 [67] = "backspace",
5012 [82] = "menu", 5016 [82] = "menu",
5017 [84] = "find",
5013 [92] = "prior", 5018 [92] = "prior",
5014 [93] = "next", 5019 [93] = "next",
5015 }; 5020 };