This file is indexed.

/usr/share/games/instead/stead/hotkeys.lua is in instead-data 1.9.1-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
require 'kbd'

stead.module_init(function()
	hook_keys('1','2','3','4','5','6','7','8','9','0');
end)

game.kbd = stead.hook(game.kbd, function(f, s, down, key, ...)
	if down and key >= '0' and key <= '9' then
		if isDialog(stead.here()) then
			if key == '0' then key = '10' end
			local p = stead.here():srch(key);
			if p and stead.nameof(p) == key then
				return stead.call(p, 'act');
			end
		end
		return
	end
	return f(s, down, key, ...);
end)

-- vim:ts=4