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:
@@ -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 "";
|
||||
|
||||
Reference in New Issue
Block a user