1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-11 01:25:45 +01:00

Add o_c, o_d, and o_y. Fix selection mode change magic bug.

This commit is contained in:
Kris Maglione
2011-10-05 01:42:44 -04:00
parent 4722c8011e
commit 59bf923305
3 changed files with 33 additions and 6 deletions

View File

@@ -909,6 +909,10 @@ var Events = Module("events", {
}),
onSelectionChange: function onSelectionChange(event) {
// Ignore selection events caused by editor commands.
if (editor.inEditMap || modes.main == modes.OPERATOR)
return;
let controller = document.commandDispatcher.getControllerForCommand("cmd_copy");
let couldCopy = controller && controller.isCommandEnabled("cmd_copy");