RE: Re: Re: Questions about disabling key repeat for a keycode or a keysym
Dear Ran, thanks for your help. :) As you commented, I put the repeat string and value into inet file. It's succeed to control the repeat for each key. :) I would consider proposing to add our custom keys to xproto, but I think there are also many product specific keys. Thanks for your recommendation and I'll try to do it. Regards, Sung-Jin Park -Original Message- From: wayland-devel [mailto:wayland-devel-boun...@lists.freedesktop.org] On Behalf Of Ran Benita Sent: Wednesday, April 20, 2016 10:16 PM To: 박성진 Cc: wayland-devel@lists.freedesktop.org Subject: Re: Re: Re: Questions about disabling key repeat for a keycode or a keysym On Wed, Apr 20, 2016 at 06:47:22AM +, 박성진 wrote: > Dear Ran, > what I did is following. :) > > 1. define a custom keysym in libxkbcommon >- add a custom keysym into xkbcommon/xkbcommon-keysyms.h file (e.g. > XF86VoiceWakeUp) >- build ks_table.h again to reflect the custom keysym in > libxkbcommon 2. add a mapping between a keycode and a keysym in > xkeyboard-config >- symbols/inet > key { [XF86VoiceWakeUp ] } I see there is already key{ [ XF86Send ] }; in the "evdev" map; do you override it, or you're not using "evdev"? Anyway, to make it not repeat, you can write this: key { [XF86VoiceWakeUp ], repeat=False } > Is it enough information ? :) > > And one more question is... what's the desirable way to define custom > keysyms and to do map between each keysym to each keycode ? There is nothing stopping you from modifying xkbcommon-keysyms.h like you did, but note that xkbcommon-keysyms.h is generated from /usr/include/X11/keysymdef.h and other files, which are maintained in the "xproto" package[0]. So, if the keysyms you are adding make general sense, consider proposing to add them to xproto first. If they're accepted they will be added in a subsequent xkbcommon release. [0] https://cgit.freedesktop.org/xorg/proto/xproto/ Alternatively, you can use an "anonymous" keysym, written like `0x123456`, with an appropriate value, then you can name it in your code instead of patching xkbcommon. Ran ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/wayland-devel ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/wayland-devel
Re: Re: Re: Questions about disabling key repeat for a keycode or a keysym
On Wed, Apr 20, 2016 at 06:47:22AM +, 박성진 wrote: > Dear Ran, > what I did is following. :) > > 1. define a custom keysym in libxkbcommon >- add a custom keysym into xkbcommon/xkbcommon-keysyms.h file (e.g. > XF86VoiceWakeUp) >- build ks_table.h again to reflect the custom keysym in libxkbcommon > 2. add a mapping between a keycode and a keysym in xkeyboard-config >- symbols/inet > key { [XF86VoiceWakeUp ] } I see there is already key{ [ XF86Send ] }; in the "evdev" map; do you override it, or you're not using "evdev"? Anyway, to make it not repeat, you can write this: key { [XF86VoiceWakeUp ], repeat=False } > Is it enough information ? :) > > And one more question is... what's the desirable way to define custom keysyms > and to do map between > each keysym to each keycode ? There is nothing stopping you from modifying xkbcommon-keysyms.h like you did, but note that xkbcommon-keysyms.h is generated from /usr/include/X11/keysymdef.h and other files, which are maintained in the "xproto" package[0]. So, if the keysyms you are adding make general sense, consider proposing to add them to xproto first. If they're accepted they will be added in a subsequent xkbcommon release. [0] https://cgit.freedesktop.org/xorg/proto/xproto/ Alternatively, you can use an "anonymous" keysym, written like `0x123456`, with an appropriate value, then you can name it in your code instead of patching xkbcommon. Ran ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/wayland-devel
Re: Re: Re: Questions about disabling key repeat for a keycode or a keysym
Dear Ran, what I did is following. :) 1. define a custom keysym in libxkbcommon - add a custom keysym into xkbcommon/xkbcommon-keysyms.h file (e.g. XF86VoiceWakeUp) - build ks_table.h again to reflect the custom keysym in libxkbcommon 2. add a mapping between a keycode and a keysym in xkeyboard-config - symbols/inet key { [XF86VoiceWakeUp ] } Is it enough information ? :) And one more question is... what's the desirable way to define custom keysyms and to do map between each keysym to each keycode ? Thanks and regards, Sung-Jin Park --- Original Message --- Sender : Ran Benita Date : 2016-04-19 19:51 (GMT+09:00) Title : Re: Re: Questions about disabling key repeat for a keycode or a keysym On Tue, Apr 19, 2016 at 09:54:35AM +, 박성진 wrote: > Dear Ran, > thank you for your answer. :) > > Plz kindly provide more details about it. > We have defined some key symbols for built-in keys in mobile handset > and would like to disable repeat for them. Can you give an example of such a key symbol you do not want to repeat, and how and where you defined it (xkb keymap file or elsewhere)? Ran ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/wayland-devel ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/wayland-devel