The copy shortcut should work when selection bar is visible

This commit is contained in:
Kovid Goyal 2020-08-05 20:08:16 +05:30
parent d69efedb2f
commit 6acd9c1989
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -471,6 +471,9 @@ class SelectionBar:
if ev.key is 'Escape': if ev.key is 'Escape':
self.clear_selection() self.clear_selection()
return return
if ev.key and ev.key.toLowerCase() is 'c' and ev.ctrlKey:
self.copy_to_clipboard()
return
sc_name = shortcut_for_key_event(ev, self.view.keyboard_shortcut_map) sc_name = shortcut_for_key_event(ev, self.view.keyboard_shortcut_map)
if sc_name is 'show_chrome': if sc_name is 'show_chrome':
self.clear_selection() self.clear_selection()