Handle keyboard backlight toggle keys.
Pressing the XF86XK_KbdLightOnOff (kbdillumtoggle) will cycle through the available brightness levels (it will increase brightness up to the maximum and then go back to minimum). If the keyboard has only two states, this behaves as a simple toggle. The reason for cycling is that it is unlikely that a laptop will have all three buttons for brightness up, down and toggle. If the machine has only a toggle button and more than one brightness level, a simple on/off (or min/max) toggle will not allow to use the intermediate levels. Closes: #222
parent
9515a249
No related branches found
No related tags found
Showing
- common/xfpm-enum-glib.h 1 addition, 0 deletionscommon/xfpm-enum-glib.h
- common/xfpm-enum.h 2 additions, 1 deletioncommon/xfpm-enum.h
- src/xfpm-button.c 3 additions, 0 deletionssrc/xfpm-button.c
- src/xfpm-kbd-backlight.c 24 additions, 0 deletionssrc/xfpm-kbd-backlight.c
- src/xfpm-manager.c 1 addition, 1 deletionsrc/xfpm-manager.c
Loading
Please register or sign in to comment