Scroll Lock is not enabled by default

Submitted by CJ Duncan

Description

For some reason, Scroll Lock is not enabled by default. I submit this bug as an enhancement, since as of this moment, I have no idea why Scroll Lock is not already enabled by default. That is the behavior that I expect.

My laptop keyboard does not have a key for Scroll Lock, so I did not notice anything was amiss. It is not until I purchased a keyboard with LED lighting that I noticed that when I pressed the Scroll Lock key, nothing was happening. I was expecting that if I pressed the Scroll Lock key, then the Scroll Lock indicator LED would turn on and the LED in my keyboard would turn on as well, but none of those actions happen. The LED indicator for Caps Lock and Num Lock worked fine, but not for Scroll Lock.

I noticed that if I go to one of the virtual terminals, by pressing Ctrl + Alt + F1 to F6, the Scroll Lock key worked as expected, and when I returned to the graphical interface it stopped working again. That indicated to me, that it probably has something to do with the Xserver. I went surfing online and I learned about xmodmap. I keyed the command xmodmap -pm and it gave the following output:

Now the Scroll Lock works, but this change is temporary. Once the computer restarts, the settings reset. I went surfing a little more and I learned about how to make the change more permanent. I found an XKB configuration file located at /usr/share/X11/xkb/symbols/us and modify it by adding modifier_map Mod3 { Scroll_Lock }; in xkb_symbols "basic" After that, I did a reset to the XKB layout cache by executing sudo rm -f /var/lib/xkb/* and sudo rm -f /var/lib/lib/xkb/*

I restarted the computer, and now every time I use the keyboard, no matter how many times I restart the computer, the Scroll Lock key works.

I do not think that this should be the case. I was expecting the Scroll Lock key to work out-of-the-box. Can we change this so that it does work out of the box?