From ceded86de32db576b4d31ae6b86ad155f67b77bc Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Thu, 4 Apr 2019 17:37:24 +0200 Subject: [PATCH] Fix T61830: Remove option to add new keymap item in search mode This was not working well, because the search text was removed after pressing this button. Finding the item that was inserted was not easy. Removing the option seems to be the best solution for now. --- release/scripts/modules/rna_keymap_ui.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/release/scripts/modules/rna_keymap_ui.py b/release/scripts/modules/rna_keymap_ui.py index 9ce52006d89..2d8e53b9097 100644 --- a/release/scripts/modules/rna_keymap_ui.py +++ b/release/scripts/modules/rna_keymap_ui.py @@ -346,11 +346,6 @@ def draw_filtered(display_keymaps, filter_type, filter_text, layout): for kmi in filtered_items: draw_kmi(display_keymaps, kc, km, kmi, col, 1) - - # "Add New" at end of keymap item list - col = _indented_layout(layout, 1) - subcol = col.split(factor=0.2).column() - subcol.operator("preferences.keyitem_add", text="Add New", icon='ADD') return True