1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 09:37:58 +01:00

Fix some anglicised spellings and other typos.

This commit is contained in:
Kris Maglione
2010-11-13 10:55:05 -05:00
parent 9148d00ede
commit 152f8523af
6 changed files with 20 additions and 22 deletions

View File

@@ -187,8 +187,8 @@ const Bookmarks = Module("bookmarks", {
// [keyword, helptext, url] // [keyword, helptext, url]
getKeywords: function getKeywords() bookmarkcache.keywords, getKeywords: function getKeywords() bookmarkcache.keywords,
// full search string including engine name as first word in @param text // full search string including engine name as first word in *text*
// if @param useDefSearch is true, it uses the default search engine // if *useDefSearch* is true, it uses the default search engine
// @returns the url for the search string // @returns the url for the search string
// if the search also requires a postData, [url, postData] is returned // if the search also requires a postData, [url, postData] is returned
getSearchURL: function getSearchURL(text, useDefsearch) { getSearchURL: function getSearchURL(text, useDefsearch) {

View File

@@ -832,7 +832,7 @@ const Buffer = Module("buffer", {
// find the currently focused frame index // find the currently focused frame index
// TODO: If the window is a frameset then the first _frame_ should be // TODO: If the window is a frameset then the first _frame_ should be
// focused. Since this is not the current FF behaviour, // focused. Since this is not the current FF behavior,
// we initialize current to -1 so the first call takes us to the // we initialize current to -1 so the first call takes us to the
// first frame. // first frame.
let current = frames.indexOf(document.commandDispatcher.focusedWindow); let current = frames.indexOf(document.commandDispatcher.focusedWindow);

View File

@@ -577,7 +577,7 @@ const CommandLine = Module("commandline", {
}, },
/** /**
* Display a multiline message. * Display a multi-line message.
* *
* @param {string} str * @param {string} str
* @param {string} highlightGroup * @param {string} highlightGroup
@@ -752,7 +752,7 @@ const CommandLine = Module("commandline", {
}, },
/** /**
* Get a multiline input from a user, up to but not including the line * Get a multi-line input from a user, up to but not including the line
* which matches the given regular expression. Then execute the * which matches the given regular expression. Then execute the
* callback with that string as a parameter. * callback with that string as a parameter.
* *
@@ -915,7 +915,7 @@ const CommandLine = Module("commandline", {
}, },
/** /**
* Handle events when we are in multiline output mode, these come from * Handle events when we are in multi-line output mode, these come from
* dactyl when modes.extended & modes.MULTILINE_OUTPUT and also from * dactyl when modes.extended & modes.MULTILINE_OUTPUT and also from
* #dactyl-multiline-output in the XUL. * #dactyl-multiline-output in the XUL.
* *
@@ -1120,7 +1120,7 @@ const CommandLine = Module("commandline", {
}, },
/** /**
* Update or remove the multiline output widget's "MORE" prompt. * Update or remove the multi-line output widget's "MORE" prompt.
* *
* @param {boolean} force If true, "-- More --" is shown even if we're * @param {boolean} force If true, "-- More --" is shown even if we're
* at the end of the output. * at the end of the output.
@@ -1269,7 +1269,7 @@ const CommandLine = Module("commandline", {
} }
// search the history for the first item matching the current // search the history for the first item matching the current
// commandline string // command-line string
while (true) { while (true) {
this.index += diff; this.index += diff;
if (this.index < 0 || this.index > this.store.length) { if (this.index < 0 || this.index > this.store.length) {

View File

@@ -225,7 +225,7 @@ const Dactyl = Module("dactyl", {
* Outputs a plain message to the command line. * Outputs a plain message to the command line.
* *
* @param {string} str The message to output. * @param {string} str The message to output.
* @param {number} flags These control the multiline message behaviour. * @param {number} flags These control the multi-line message behavior.
* See {@link CommandLine#echo}. * See {@link CommandLine#echo}.
*/ */
echo: function echo(str, flags) { echo: function echo(str, flags) {
@@ -237,7 +237,7 @@ const Dactyl = Module("dactyl", {
* Outputs an error message to the command line. * Outputs an error message to the command line.
* *
* @param {string} str The message to output. * @param {string} str The message to output.
* @param {number} flags These control the multiline message behaviour. * @param {number} flags These control the multi-line message behavior.
* See {@link CommandLine#echo}. * See {@link CommandLine#echo}.
*/ */
echoerr: function echoerr(str, flags) { echoerr: function echoerr(str, flags) {
@@ -265,7 +265,7 @@ const Dactyl = Module("dactyl", {
* @param {number} verbosity The messages log level (0 - 15). Only * @param {number} verbosity The messages log level (0 - 15). Only
* messages with verbosity less than or equal to the value of the * messages with verbosity less than or equal to the value of the
* *verbosity* option will be output. * *verbosity* option will be output.
* @param {number} flags These control the multiline message behaviour. * @param {number} flags These control the multi-line message behavior.
* See {@link CommandLine#echo}. * See {@link CommandLine#echo}.
*/ */
echomsg: function (str, verbosity, flags) { echomsg: function (str, verbosity, flags) {

View File

@@ -1,11 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- ***** BEGIN LICENSE BLOCK ***** {{{ <!--
Copyright (c) 2006-2009 by Martin Stubenschrott <stubenschrott@vimperator.org> Copyright (c) 2006-2009 by Martin Stubenschrott <stubenschrott@vimperator.org>
Copyright (c) 2007-2009 by Kris Maglione <maglione.k at Gmail>
This work is licensed for reuse under an MIT license. Details are This work is licensed for reuse under an MIT license. Details are
given in the LICENSE.txt file included with this file. given in the LICENSE.txt file included with this file.
}}} ***** END LICENSE BLOCK ***** --> -->
<?xml-stylesheet href="chrome://dactyl/skin/dactyl.css" type="text/css"?> <?xml-stylesheet href="chrome://dactyl/skin/dactyl.css" type="text/css"?>
<!DOCTYPE overlay SYSTEM "dactyl.dtd" [ <!DOCTYPE overlay SYSTEM "dactyl.dtd" [

View File

@@ -224,7 +224,7 @@ const Events = Module("events", {
/** /**
* Pushes keys onto the event queue from dactyl. It is similar to * Pushes keys onto the event queue from dactyl. It is similar to
* Vim's feedkeys() method, but cannot cope with 2 partially-fed * Vim's feedkeys() method, but cannot cope with 2 partially-fed
* strings, you have to feed one parsable string. * strings, you have to feed one parseable string.
* *
* @param {string} keys A string like "2<C-f>" to push onto the event * @param {string} keys A string like "2<C-f>" to push onto the event
* queue. If you want "<" to be taken literally, prepend it with a * queue. If you want "<" to be taken literally, prepend it with a
@@ -343,7 +343,7 @@ const Events = Module("events", {
* <C- > maps to <C-Space>, <S-a> maps to A * <C- > maps to <C-Space>, <S-a> maps to A
* << maps to <lt><lt> * << maps to <lt><lt>
* *
* <S-@> is preserved, as in vim, to allow untypeable key-combinations * <S-@> is preserved, as in Vim, to allow untypeable key-combinations
* in macros. * in macros.
* *
* canonicalKeys(canonicalKeys(x)) == canonicalKeys(x) for all values * canonicalKeys(canonicalKeys(x)) == canonicalKeys(x) for all values
@@ -463,8 +463,6 @@ const Events = Module("events", {
* Converts the specified event to a string in dactyl key-code * Converts the specified event to a string in dactyl key-code
* notation. Returns null for an unknown event. * notation. Returns null for an unknown event.
* *
* E.g. pressing ctrl+n would result in the string "<C-n>".
*
* @param {Event} event * @param {Event} event
* @returns {string} * @returns {string}
*/ */
@@ -503,7 +501,6 @@ const Events = Module("events", {
// (i.e., cntrl codes 27--31) // (i.e., cntrl codes 27--31)
// --- // ---
// For more information, see: // For more information, see:
// [*] Vimp FAQ: http://vimperator.org/trac/wiki/Pentadactyl/FAQ#WhydoesntC-workforEscMacOSX
// [*] Referenced mailing list msg: http://www.mozdev.org/pipermail/pentadactyl/2008-May/001548.html // [*] Referenced mailing list msg: http://www.mozdev.org/pipermail/pentadactyl/2008-May/001548.html
// [*] Mozilla bug 416227: event.charCode in keypress handler has unexpected values on Mac for Ctrl with chars in "[ ] _ \" // [*] Mozilla bug 416227: event.charCode in keypress handler has unexpected values on Mac for Ctrl with chars in "[ ] _ \"
// https://bugzilla.mozilla.org/show_bug.cgi?query_format=specific&order=relevance+desc&bug_status=__open__&id=416227 // https://bugzilla.mozilla.org/show_bug.cgi?query_format=specific&order=relevance+desc&bug_status=__open__&id=416227
@@ -516,7 +513,7 @@ const Events = Module("events", {
// <C-C-]> if your fancy keyboard permits such things<?>), but // <C-C-]> if your fancy keyboard permits such things<?>), but
// these <C-control> mappings are probably pathological (<C-Esc> // these <C-control> mappings are probably pathological (<C-Esc>
// certainly is on Windows), and so it is probably // certainly is on Windows), and so it is probably
// harmless to remove the has("Darwin") if desired. // harmless to remove the util.OS.isMacOSX if desired.
// //
else if (util.OS.isMacOSX && event.ctrlKey && charCode >= 27 && charCode <= 31) { else if (util.OS.isMacOSX && event.ctrlKey && charCode >= 27 && charCode <= 31) {
if (charCode == 27) { // [Ctrl-Bug 1/5] the <C-[> bug if (charCode == 27) { // [Ctrl-Bug 1/5] the <C-[> bug
@@ -531,7 +528,7 @@ const Events = Module("events", {
key = String.fromCharCode(charCode); key = String.fromCharCode(charCode);
if (!/^[a-z0-9]$/i.test(key) && key in this._key_code) { if (!/^[a-z0-9]$/i.test(key) && key in this._key_code) {
// a named charcode key (<Space> and <lt>) space can be shifted, <lt> must be forced // a named charCode key (<Space> and <lt>) space can be shifted, <lt> must be forced
if ((key.match(/^\s$/) && event.shiftKey) || event.dactylShift) if ((key.match(/^\s$/) && event.shiftKey) || event.dactylShift)
modifier += "S-"; modifier += "S-";
@@ -769,7 +766,7 @@ const Events = Module("events", {
}, },
// this keypress handler gets always called first, even if e.g. // this keypress handler gets always called first, even if e.g.
// the commandline has focus // the command-line has focus
// TODO: ...help me...please... // TODO: ...help me...please...
onKeyPress: function onKeyPress(event) { onKeyPress: function onKeyPress(event) {
function isEscape(key) key == "<Esc>" || key == "<C-[>"; function isEscape(key) key == "<Esc>" || key == "<C-[>";
@@ -787,7 +784,7 @@ const Events = Module("events", {
return null; return null;
if (modes.isRecording) { if (modes.isRecording) {
if (key == "q" && !modes.mainMode.input) { // TODO: should not be hardcoded if (key == "q" && !modes.mainMode.input) { // TODO: should not be hard-coded
modes.isRecording = false; modes.isRecording = false;
dactyl.log("Recorded " + this._currentMacro + ": " + this._macros.get(this._currentMacro, {}).keys, 9); dactyl.log("Recorded " + this._currentMacro + ": " + this._macros.get(this._currentMacro, {}).keys, 9);
dactyl.echomsg("Recorded macro '" + this._currentMacro + "'"); dactyl.echomsg("Recorded macro '" + this._currentMacro + "'");