This is a follow up of #1942. The "Add left" and "Add right" functions in the "Available meters" have inconsistent behaviors on which panel should get focus after the add. I have a video capture for demonstration: https://github.com/user-attachments/assets/6d32f85a-3abd-4433-80f6-d6c4dde77834 1. Go to "Setup" -> "Meters" 2. Press Right key repeatedly until the "Available meters" is in focus. 3. Select a meter to add and press F5. Observe the "Available meters" panel remains focused. 4. Select another meter to add and press F6. Observe the focused panel shifts to the "Column 2" panel. The expected result is consistent behavior in steps 3 and 4. I can point out that the problem likely happens in the two different `result` values in `AvailableMetersPanel_eventHandler()`: https://github.com/htop-dev/htop/blob/6b15bd73f600940e5829208628cc33830dc26fca/AvailableMetersPanel.c#L65 ```c result = HANDLED; ``` https://github.com/htop-dev/htop/blob/6b15bd73f600940e5829208628cc33830dc26fca/AvailableMetersPanel.c#L76 ```c result = (KEY_LEFT << 16) | SYNTH_KEY; ```
This is a follow up of #1942.
The "Add left" and "Add right" functions in the "Available meters" have inconsistent behaviors on which panel should get focus after the add.
I have a video capture for demonstration:
2026-04-07.7.14.22.mov
The expected result is consistent behavior in steps 3 and 4.
I can point out that the problem likely happens in the two different
resultvalues inAvailableMetersPanel_eventHandler():htop/AvailableMetersPanel.c
Line 65 in 6b15bd7
htop/AvailableMetersPanel.c
Line 76 in 6b15bd7