Merge pull request #2348 from myk002/myk_hack_wish

[gui/create-item] Fix hotkeys getting swallowed by the list filter
develop
Myk 2022-10-19 17:39:01 -07:00 committed by GitHub
commit 103a95bcf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

@ -36,6 +36,7 @@ changelog.txt uses a syntax similar to RST, with a few special sequences:
## New Plugins
## Fixes
- `gui/create-item`: prevent materials list filter from intercepting sublist hotkeys
- `tiletypes`: no longer resets dig priority to the default when updating other properties of a tile
## Misc Improvements

@ -56,6 +56,8 @@ function MaterialDialog:init(info)
frame = { l = 0, r = 0, t = 4, b = 2 },
icon_width = 2,
on_submit = self:callback('onSubmitItem'),
edit_ignore_keys={'CUSTOM_SHIFT_I', 'CUSTOM_SHIFT_C',
'CUSTOM_SHIFT_P'},
},
widgets.Label{
text = { {

@ -1192,7 +1192,7 @@ function List:onRenderBody(dc)
if obj.key then
local keystr = gui.getKeyDisplay(obj.key)
ip = ip-2-#keystr
ip = ip-3-#keystr
dc:seek(ip,y):pen(self.text_pen)
dc:string('('):string(keystr,COLOR_LIGHTGREEN):string(')')
end