(command: str)
| 230 | } |
| 231 | |
| 232 | def get_key_no_doublebind(command: str) -> str: |
| 233 | default_commands_to_keys = self.defaults["keyboard"] |
| 234 | requested_key = config.get("keyboard", command) |
| 235 | |
| 236 | try: |
| 237 | default_command = default_keys_to_commands[requested_key] |
| 238 | if default_commands_to_keys[default_command] == config.get( |
| 239 | "keyboard", default_command |
| 240 | ): |
| 241 | setattr(self, f"{default_command}_key", "") |
| 242 | except KeyError: |
| 243 | pass |
| 244 | |
| 245 | return requested_key |
| 246 | |
| 247 | self.config_path = ( |
| 248 | config_path.absolute() if config_path is not None else None |
nothing calls this directly
no outgoing calls
no test coverage detected