Remove adjust selection action

This commit is contained in:
Kovid Goyal 2020-08-02 21:16:51 +05:30
parent 4f68fb39fc
commit 2668212179
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -157,7 +157,6 @@ def all_actions():
'lookup': a('library', _('Lookup/search selected word'), 'lookup'), 'lookup': a('library', _('Lookup/search selected word'), 'lookup'),
'quick_highlight': a('highlight', _('Quick highlight in current color'), 'quick_highlight'), 'quick_highlight': a('highlight', _('Quick highlight in current color'), 'quick_highlight'),
'highlight': a('highlight', _('Highlight selection in notes mode'), 'create_highlight'), 'highlight': a('highlight', _('Highlight selection in notes mode'), 'create_highlight'),
'selection': a('arrows-h', _('Highlight adjusting selection'), 'adjust_selection'),
'search_net': a('search', _('Search for selection on the net'), 'internet_search'), 'search_net': a('search', _('Search for selection on the net'), 'internet_search'),
'remove_highlight': a('trash', _('Remove this highlight'), 'remove_highlight', True), 'remove_highlight': a('trash', _('Remove this highlight'), 'remove_highlight', True),
'clear': a('close', _('Clear selection'), 'clear_selection'), 'clear': a('close', _('Clear selection'), 'clear_selection'),
@ -496,6 +495,7 @@ class SelectionBar:
def update_position(self): def update_position(self):
container = self.container container = self.container
self.bar.style.display = 'none' self.bar.style.display = 'none'
self.editor.style.display = 'none'
self.set_handle_colors() self.set_handle_colors()
if self.state is DRAGGING: if self.state is DRAGGING:
return return
@ -619,9 +619,6 @@ class SelectionBar:
def create_highlight(self): def create_highlight(self):
self.view.initiate_create_annotation(True) self.view.initiate_create_annotation(True)
def adjust_selection(self):
self.view.initiate_create_annotation(False)
def quick_highlight(self): def quick_highlight(self):
cs = self.view.currently_showing.selection cs = self.view.currently_showing.selection
if cs.text: if cs.text: