Re: [PATCH v2] Caps in not always shift

2015-07-13 Thread Dinar Valeev
On Fri, Jul 10, 2015 at 8:42 AM, Paul Mackerras wrote: > On Wed, Jul 08, 2015 at 06:47:44PM +0200, Dinar valeev wrote: >> From: Dinar Valeev >> >> Caps behaves like shift only for latin characters. >> In case we're typing - for example with caps enabled, SLOF picks _ char >> from shifted table. >

Re: [PATCH v2] Caps in not always shift

2015-07-09 Thread Paul Mackerras
On Wed, Jul 08, 2015 at 06:47:44PM +0200, Dinar valeev wrote: > From: Dinar Valeev > > Caps behaves like shift only for latin characters. > In case we're typing - for example with caps enabled, SLOF picks _ char > from shifted table. > > Threat caps as shift only for letters. "Treat" not "Threa

Re: [PATCH v2] Caps in not always shift

2015-07-09 Thread Segher Boessenkool
On Thu, Jul 09, 2015 at 08:00:48AM +0200, Thomas Huth wrote: > > /** > > + * Checks if keypos is a latin key > > + * @param keypos > > + * @return - > > + */ > > +void check_latin(uint8_t keypos) > > + if (keypos > KEYP_LATIN_A || keypos < KEYP_LATIN_Z) { > > + return true; > > + }

Re: [PATCH v2] Caps in not always shift

2015-07-08 Thread Thomas Huth
Hi! Please CC to s...@lists.ozlabs.org now that we've finally got a SLOF mailing list :-) ! On Wed, 8 Jul 2015 18:47:44 +0200 Dinar valeev wrote: ... > /** > + * Checks if keypos is a latin key > + * @param keypos > + * @return - > + */ > +void check_latin(uint8_t keypos) > + if (keypos