Re: [orca-list] Changing Orca key



Hi Will
Thanks. I guess I figured orca.settings would be resolved if orca- customizations.py was imported at the end of user-settings.py. I'm not as familiar with Python as I probably should be, I'm more the c++ type. Guess I should speed up my Python lessons a bit.


On Jan 22, 2009, at 16:25, Willie Walker wrote:

Hi Jacob:

Yep -- it's just a Python script that is imported, so you must make sure you use proper Python syntax and that it has all the stuff it needs. So, the 'orca.settings' symbol needs to be resolved before it is referenced.

So...you might try this:

# -*- coding: utf-8 -*-
import orca.settings
orca.settings.orcaModifierKeys = orca.settings.DESKTOP_MODIFIER_KEYS

Will

Jacob Schmude wrote:
Hi Will
Do I need to put something at the top of orca-customizations.py? When I create one and put this line in it:
orca.settings.orcaModifierKeys = orca.settings.DESKTOP_MODIFIER_KEYS
all that happens is the orca preferences dialog fires up every time I start orca. This setting doesn't seem to work. What I'm trying to do is keep the orca laptop layout, but have the desktop modifier keys (I have grave accent already mapped to insert through VMWare itself, so this is all that would be needed). Currently, I have to keep placing this in user-settings.py to get this setting. orca- customizations.py doesn't seem to affect it, as when I change preferences my modifier key is still erased and the line in orca- customizations.py is doing nothing.
What am I messing up here?
On Jan 22, 2009, at 15:18, Willie Walker wrote:
If you create a ~/.orca/orca-customizations.py file, it will not be overridden. Only the user-preferences.py file will be overridden when you change the preferences via the GUI.

If you look closely at the end of ~/.orca/user-preferences.py, you will see that the orca-customizations.py file is merely imported and is just a Python script. So, you can make it do anything. Just be careful to use good syntax. Temporarily adding a "print" statement to the "except ImportError" clause can help you debug typos you might make.

Will

Jacob Schmude wrote:
Hi
Is there a way to prevent orca from overwriting this preference? When I change it manually like this, if I then change any of my orca preferences it is overridden with the default modifiers of the keyboard layout I've chosen.
On Jan 22, 2009, at 14:55, Willie Walker wrote:
Hi Everett:

There's a work-in-progress patch at http://bugzilla.gnome.org/show_bug.cgi?id=536827 , but you can also edit your ~/.orca/user-settings.py or ~/.orca/ orca-customizations.py files (you might need to create the latter if it doesn't exist) and change/add the line that looks similar to the following:

orca.settings.orcaModifierKeys = orca.settings.DESKTOP_MODIFIER_KEYS

You might, for example, make it look like the following (all on one line, just in case my e-mail app or yours decides to wrap it):

orca.settings.orcaModifierKeys = orca.settings.DESKTOP_MODIFIER_KEYS["`"]

Hope this helps,

Will

E.J. Zufelt wrote:
Good evening,
I am using Orca on Ubuntu through VMWare Fusion. Long story short I have neither a caps lock or Insert key. Using Laptop layout in Orca, how can I change the Orca modifier key to something other than Caps Lock? Perhaps the accent key to the left of the 1
Thanks,
Everett
_______________________________________________
Orca-list mailing list
Orca-list gnome org
http://mail.gnome.org/mailman/listinfo/orca-list
Visit http://live.gnome.org/Orca for more information on Orca

_______________________________________________
Orca-list mailing list
Orca-list gnome org
http://mail.gnome.org/mailman/listinfo/orca-list
Visit http://live.gnome.org/Orca for more information on Orca
The major difference between a thing that might go wrong and a thing that cannot possibly go wrong is that when a thing that cannot possibly go wrong goes wrong it usually turns out to be impossible to get at or repair.
  --Douglas Adams
_______________________________________________
Orca-list mailing list
Orca-list gnome org
http://mail.gnome.org/mailman/listinfo/orca-list
Visit http://live.gnome.org/Orca for more information on Orca

The major difference between a thing that might go wrong and a thing that cannot possibly go wrong is that when a thing that cannot possibly go wrong goes wrong it usually turns out to be impossible to get at or repair.
   --Douglas Adams
_______________________________________________
Orca-list mailing list
Orca-list gnome org
http://mail.gnome.org/mailman/listinfo/orca-list
Visit http://live.gnome.org/Orca for more information on Orca


The major difference between a thing that might go wrong and a thing that cannot possibly go wrong is that when a thing that cannot possibly go wrong goes wrong it usually turns out to be impossible to get at or repair.
        --Douglas Adams




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]