(global-set-key [\83] #'ignore) ; KEYCODE_NOTIFICATION on pre-Honeycomb
; releases.
-;; `select' key, which I suppose amounts to return.
-(define-key input-decode-map [select] [return])
-
\f
(provide 'android-win)
;; android-win.el ends here.
#include "textconv.h"
#include "coding.h"
#include "pdumper.h"
+#include "keymap.h"
/* This is a chain of structures for all the X displays currently in
use. */
dpyinfo->resx = android_pixel_density_x;
dpyinfo->resy = android_pixel_density_y;
dpyinfo->font_resolution = android_scaled_pixel_density;
-#endif /* ANDROID_STUBIFY */
+#endif /* !ANDROID_STUBIFY */
/* https://lists.gnu.org/r/emacs-devel/2015-11/msg00194.html */
dpyinfo->smallest_font_height = 1;
#ifndef ANDROID_STUBIFY
sem_init (&edit_sem, false, 0);
register_textconv_interface (&text_conversion_interface);
-#endif
+#endif /* !ANDROID_STUBIFY */
+
+ /* Binding certain key events in the terminal's `input-decode-map',
+ which being keyboard-local is not accessible from any point in
+ android-win.el. */
+ Fdefine_key (KVAR (terminal->kboard, Vinput_decode_map),
+ make_vector (1, Qselect), Qreturn, Qnil);
}
\f
Fput (Qmeta, Qmodifier_value, make_fixnum (meta_modifier));
DEFSYM (Qsuper, "super");
Fput (Qsuper, Qmodifier_value, make_fixnum (super_modifier));
+
+ /* Key symbols. */
+ DEFSYM (Qselect, "select");
+ DEFSYM (Qreturn, "return");
}
void