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

added showmode setting

This commit is contained in:
Martin Stubenschrott
2007-04-19 23:35:52 +00:00
parent 5e5137e6f7
commit f52cca72ff
5 changed files with 89 additions and 35 deletions

View File

@@ -22,10 +22,6 @@
*
*/
const HINT_MODE_QUICK = 0;
const HINT_MODE_ALWAYS = 1;
const HINT_MODE_EXTENDED = 2;
function hit_a_hint()
{
const HINT_PREFIX = 'hah_hint_'; // prefix for the hint id
@@ -391,9 +387,8 @@ function hit_a_hint()
//function enableHahMode(event, mode)
this.enableHahMode = function(mode)
{
// if (isHahModeEnabled)
// return false;
setCurrentMode(mode);
showMode();
hintmode = mode;
state = 0;
linkCount = 0;
@@ -418,10 +413,13 @@ function hit_a_hint()
//function disableHahMode(event)
this.disableHahMode = function(win)
{
setCurrentMode(MODE_NORMAL);
isHahModeEnabled = false;
hintmode = HINT_MODE_QUICK;
linkNumString = '';
hintedElems = [];
if (get_pref("showmode"))
echo('');
removeHints(win);
return 0;