mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Update Android port
* doc/lispref/commands.texi (Misc Events): Document variable `disable-inhibit-text-conversion'. * java/org/gnu/emacs/EmacsDialog.java (display1): Try an activity that is certain to be focused first. * lisp/touch-screen.el (touch-screen-track-tap) (touch-screen-track-drag): Bind `disable-inhibit-text-conversion'. * src/keyboard.c (read_key_sequence): Only disable text conversion if an actual function or numeric key is found in the key sequence. (syms_of_keyboard): New variable `disable-inhibit-text-conversion'. * src/lread.c (read_filtered_event): Check new variable. * src/textconv.c (textconv_query): Remove unused label.
This commit is contained in:
parent
aec73dba8f
commit
c74bab6067
6 changed files with 64 additions and 42 deletions
|
|
@ -511,20 +511,21 @@ with that event and DATA.
|
|||
|
||||
Return nil immediately if any other kind of event is received;
|
||||
otherwise, return t once the `touchscreen-end' event arrives."
|
||||
(catch 'finish
|
||||
(while t
|
||||
(let ((new-event (read-event nil)))
|
||||
(cond
|
||||
((eq (car-safe new-event) 'touchscreen-update)
|
||||
(when (and update (assq (caadr event) (cadr new-event)))
|
||||
(funcall update new-event data)))
|
||||
((eq (car-safe new-event) 'touchscreen-end)
|
||||
(throw 'finish
|
||||
;; Now determine whether or not the `touchscreen-end'
|
||||
;; event has the same ID as EVENT. If it doesn't,
|
||||
;; then this is another touch, so return nil.
|
||||
(eq (caadr event) (caadr new-event))))
|
||||
(t (throw 'finish nil)))))))
|
||||
(let ((disable-inhibit-text-conversion t))
|
||||
(catch 'finish
|
||||
(while t
|
||||
(let ((new-event (read-event nil)))
|
||||
(cond
|
||||
((eq (car-safe new-event) 'touchscreen-update)
|
||||
(when (and update (assq (caadr event) (cadr new-event)))
|
||||
(funcall update new-event data)))
|
||||
((eq (car-safe new-event) 'touchscreen-end)
|
||||
(throw 'finish
|
||||
;; Now determine whether or not the `touchscreen-end'
|
||||
;; event has the same ID as EVENT. If it doesn't,
|
||||
;; then this is another touch, so return nil.
|
||||
(eq (caadr event) (caadr new-event))))
|
||||
(t (throw 'finish nil))))))))
|
||||
|
||||
(defun touch-screen-track-drag (event update &optional data)
|
||||
"Track a single drag starting from EVENT.
|
||||
|
|
@ -543,7 +544,8 @@ otherwise, return either t or `no-drag' once the
|
|||
touch point in EVENT did not move significantly, and t otherwise."
|
||||
(let ((return-value 'no-drag)
|
||||
(start-xy (touch-screen-relative-xy (cdadr event)
|
||||
'frame)))
|
||||
'frame))
|
||||
(disable-inhibit-text-conversion t))
|
||||
(catch 'finish
|
||||
(while t
|
||||
(let ((new-event (read-event nil)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue