Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'key-handler' of github.com:maks/hipster into key-handler

  • Loading branch information...
commit e1026f0d8a4552a79d8c8755b16b72c3649ff056 2 parents 118db42 + 38c34a2
Maksim Lin authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 plugins/selection.js
12 plugins/selection.js
View
@@ -14,8 +14,8 @@ module.exports = function (doc, keys, cursor) {
//add our first listener, then readd the listeners
//then add our last listener.
- var listeners = keys.listeners('keypress')
- keys.removeAllListeners('keypress')
+ //~ var listeners = keys.listeners('keypress')
+ //~ keys.removeAllListeners('keypress')
function startSelection (ch, key) {
//only start selection if it's a movement key.
@@ -41,11 +41,11 @@ module.exports = function (doc, keys, cursor) {
keys.on('keypress', startSelection)
- listeners.forEach(function (listener) {
- keys.on('keypress', listener)
- })
+ //~ listeners.forEach(function (listener) {
+ //~ keys.on('keypress', listener)
+ //~ })
- keys.on('keypress', endSelection)
+ //~ keys.on('keypress', endSelection)
this.renderers.push(function (q, x, y) {
Please sign in to comment.
Something went wrong with that request. Please try again.