# upper/lower or numeric/punc
# and bottom row maybe should become:
# lock control alt ... something.
+#
+# Need:
+# P-up Pdown Arrows
+# control alt
+#
+# ESC - enter-drag
+# TAB - space-drag
+# ctrl - Shift-drag
+# alt - num-drag
+#
import gtk, pango, gobject
]
keymap['lower-xtra'] = [
['1','2','3','4','5','6','7','8','9','0'],
- [ ' ',' ',' ',' ',' ',' ',' ',' ',' '],
- ['$',' ',' ',' ',' ',' ',' ',' ','!','?']
+ [ '/',' ',' ',' ',' ',' ',' ',' ',' '],
+ ['$','*',' ',' ',' ',' ','<','>','!','?']
]
keymap['lower-shift'] = [
['Q','W','E','R','T','Y','U','I','O','P'],
keymap['number-shift'] = [
['!','@','#','$','%','^','&','*','(',')'],
[ '~','`','_',',','.','<','>','\'','"'],
- ['\\','|','+','=','_','-','Tab','Escape','Delete','Home']
+ ['\\','|','+','=','_','-','Home','End','Insert','Delete']
]
class TapBoard(gtk.VBox):
b = self.add_button('Num', self.nextmode, True, h, fd)
self.modebutton = b
- b = self.add_button('SPC', self.tap, (-1,' '), h, fd)
- b = self.add_button('Entr', self.tap, (-1,'\n'), h, fd)
- b = self.add_button(gtk.STOCK_UNDO, self.tap, (-1,'\b'), h)
+ b = self.add_button('SPC', self.tap, (-1,(' ','\t')), h, fd)
+ b = self.add_button('Entr', self.tap, (-1,('\n','\e')), h, fd)
+ b = self.add_button(gtk.STOCK_UNDO, self.tap, (-1,('\b','up')), h)
# mode can be 'lower' or 'number'
# shift can be '' or '-shift'
else:
m = self.mode + '-shift'
if row < 0 :
- sym = col
+ if moved:
+ sym = col[1]
+ else:
+ sym = col[0]
else:
sym = keymap[m][row][col]
self.emit('key', sym)