BangleApps/typescript/types
Rob Pilling 2bbef9f740 clkinfo: make `CLKINFO_FOCUS` a counter
This avoids issues when we have multiple clkinfos visible. The first clkinfo may want to focus itself, but a second clkinfo may then unfocus, deleting the first's effects (i.e. setting `CLKINFO_FOCUS`).

In detail:

`CLKINFO_FOCUS` will be set (to `true`) by the first handler (left hand clkinfo) and then unset (/ `delete`d) by the second handler (right hand clkinfo).

This is done in [the `touchHandler`](c2ea454a3b/apps/clock_info/lib.js (L313-L324)).

This commit makes `CLKINFO_FOCUS` a count.

- When we have a tap on a previous clkinfo (previous as in, earlier in the event handler list), it'll focus itself, `CLKINFO_FOCUS++`
- The later handler comes along, unfocuses itself, `CLKINFO_FOCUS--`
- `CLKINFO_FOCUS` is now `1`, so clkinfo is registered as being focussed still, meaning quicklaunch will work because of:

> c2ea454a3b/apps/quicklaunch/boot.js (L36-L36)

Fixes #3355
2024-04-18 18:12:58 +01:00
..
ClockFace.d.ts Reformat typescript/**/*.d.ts 2023-02-19 21:07:12 +00:00
bangle_extensions.d.ts types: add BangleEvents 2023-05-16 23:16:34 +01:00
clock_info.d.ts clkinfo: make `CLKINFO_FOCUS` a counter 2024-04-18 18:12:58 +01:00
funcs.d.ts Update typescript & remove "use strict"s 2023-04-20 13:09:52 +01:00
info.d.ts Made tags, type, and version optional 2023-05-13 14:28:10 -07:00
layout.d.ts layout.d.ts: permit assignment back to strings 2024-03-16 13:08:09 +00:00
locale.d.ts Add better deprecation descriptions 2024-03-21 11:29:02 +01:00
main.d.ts Update typescript types 2024-03-25 20:52:34 +00:00
modules.d.ts typescript: remove `Layout_` naming hack 2023-06-30 08:26:44 +01:00
other.d.ts btadv: minimum confidence level for HRM 2023-02-14 22:34:09 +00:00
package.json Add new typings for TypeScript 2022-07-19 09:49:47 +02:00
sched.d.ts sched: add setting to buzz forever when alarm is fired 2024-02-28 22:35:58 +00:00
settings.d.ts widhid: new widget 2023-05-08 22:33:50 +01:00