netrender tab to spaces

This commit is contained in:
Campbell Barton
2009-12-29 00:04:57 +00:00
parent 42154ad226
commit 58b1591ceb
16 changed files with 2454 additions and 2454 deletions

View File

@@ -1476,13 +1476,13 @@ class USERPREF_PT_input(bpy.types.Panel):
for km in kc.keymaps:
filtered_items = [kmi for kmi in km.items if filter in kmi.name.lower()]
if len(filtered_items) != 0:
km = km.active()
layout.set_context_pointer("keymap", km)
col = layout.column()
row = col.row()
row.label(text=km.name, icon="DOT")
@@ -1496,7 +1496,7 @@ class USERPREF_PT_input(bpy.types.Panel):
for kmi in filtered_items:
self.draw_kmi(kc, km, kmi, col, 1)
# "Add New" at end of keymap item list
col = self.indented_layout(layout, 1)
subcol = col.split(percentage=0.2).column()
@@ -1813,18 +1813,18 @@ class WM_OT_keyitem_add(bpy.types.Operator):
wm = context.manager
km = context.keymap
kc = wm.default_keyconfig
if km.modal:
km.add_modal_item("", 'A', 'PRESS') # kmi
else:
km.add_item("none", 'A', 'PRESS') # kmi
# clear filter and expand keymap so we can see the newly added item
if kc.filter != '':
kc.filter = ''
km.items_expanded = True
km.children_expanded = True
return {'FINISHED'}