unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: master 60dd962507: Translate more keys on Haiku
       [not found] ` <20220112072356.E3CC9C0DA2E@vcs2.savannah.gnu.org>
@ 2022-01-12 15:38   ` Stefan Monnier
  2022-01-13  0:38     ` Po Lu
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Monnier @ 2022-01-12 15:38 UTC (permalink / raw)
  To: Po Lu; +Cc: emacs-devel

> @@ -186,6 +186,14 @@ keysym_from_raw_char (int32 raw, int32 key, unsigned *code)
>  
>      case B_FUNCTION_KEY:
>        *code = XK_F1 + key - 2;
> +
> +      if (*code - XK_F1 == 12)
> +	*code = XK_Print;
> +      else if (*code - XK_F1 == 13)
> +	*code = XK_Scroll_Lock;
> +      else if (*code - XK_F1 == 14)
> +	*code = XK_Pause;

Could you add a comment explaining why these specific key codes are
mapped to these specific keys?  Maybe a reference to some doc defining
F13 as print, F14 as scrolllock, and F15 as pause, or something
like that?


        Stefan




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: master 60dd962507: Translate more keys on Haiku
  2022-01-12 15:38   ` master 60dd962507: Translate more keys on Haiku Stefan Monnier
@ 2022-01-13  0:38     ` Po Lu
  0 siblings, 0 replies; 2+ messages in thread
From: Po Lu @ 2022-01-13  0:38 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: emacs-devel

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> Could you add a comment explaining why these specific key codes are
> mapped to these specific keys?  Maybe a reference to some doc defining
> F13 as print, F14 as scrolllock, and F15 as pause, or something
> like that?

Sure thing, in a bit.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-01-13  0:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <164197223649.17592.3617443770011266372@vcs2.savannah.gnu.org>
     [not found] ` <20220112072356.E3CC9C0DA2E@vcs2.savannah.gnu.org>
2022-01-12 15:38   ` master 60dd962507: Translate more keys on Haiku Stefan Monnier
2022-01-13  0:38     ` Po Lu

Code repositories for project(s) associated with this inbox:

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).