1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 08:12:29 +01:00

Use real key bindings in MOW mode, and also restore the strange key passing behavior of yore. Closes issue #217.

This commit is contained in:
Kris Maglione
2010-12-28 21:55:30 -05:00
parent cd21743661
commit ca4b3a03c9
6 changed files with 100 additions and 135 deletions

View File

@@ -481,8 +481,8 @@ var Buffer = Module("buffer", {
*
* @returns {string}
*/
getCurrentWord: function () {
let win = buffer.focusedFrame || content;
getCurrentWord: function (win) {
win = win || buffer.focusedFrame || content;
let selection = win.getSelection();
if (selection.rangeCount == 0)
return "";