def _on_dollar(self, event):
        '''If there is a selection, surround it with ${}'''
        sel = self.dte.tag_ranges("sel")
        if 0 > len(sel):
            self.dte.insert(sel[1], "}")
            self.dte.insert(sel[0], "${")
            return "break"
dataset/ETHPy150Open boakley/robotframework-workbench/rwb/editor/editor_page.py/EditorPage._on_dollar/swapped operands of `>`