Bug 1048228 - Set the last used keyboard as default after restart of the phone

I am tempted to use `array.findIndex()` here.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex

But this is still readable I think.