Pass a context (the editor) to keymaps with a call method

Issue #2915