]> git.eshelyaron.com Git - emacs.git/commit
Don't hard code key codes on Haiku
authorPo Lu <luangruo@yahoo.com>
Mon, 10 Jan 2022 02:32:01 +0000 (02:32 +0000)
committerPo Lu <luangruo@yahoo.com>
Mon, 10 Jan 2022 02:32:01 +0000 (02:32 +0000)
commitbf121747de93f7a7d04f04ffde5e35c8725451e5
treea16a1ec6f9657588b415cf2aa44ec7af582b37aa
parentf3b1badfd61c499f141ecbf95cf594e73a752e4a
Don't hard code key codes on Haiku

* src/haiku_support.cc (keysym_from_raw_char): New function.
(DispatchMessage): Map raw character to keysym if applicable.
(be_map_key): Delete function.
* src/haiku_support.h (struct haiku_key_event): Update fields
to hold keysym and character instead.
* src/haikuterm.c (haiku_read_socket): Don't call be_map_key,
and use keysym field if provided instead.
src/haiku_support.cc
src/haiku_support.h
src/haikuterm.c