Catch Ctrl+Tab event
Hi guys,
I have created a UDO and I would like to be able to catch an event when the user presses ctrl+Tab in one of the matrix columns. How can I do this?
Thanks,
Costas
On the KEY_DOWN event you can check for modifiers - something like this:
if (pVal.CharPressed == 9 && pVal.Modifiers == SAPbouiCOM.BoModifiersEnum.mt_CTRL)
Obviously you need to add conditions to check the event is happening on the matrix, and on the column you want.
Similar Messages
-
How to catch ctrl+tab key down
Ok, in the ItemEvent class or pVal we have a CharPressed property, for tab i'm getting a 9 character number but how can I detect if the user is pressing ctrl+tab button, I can't find any property that tells me if the user is presing control. I'm using SBO 2005....
Hi Giuseppe
It sounds like you are looking for the ChooseFromList Object. Look at the SDK sample code <i><b>SAP Business One SDK\Samples\COM UI\VB.NET\17.ChooseFromList</b></i>. In the example they demonstrate using the ChooseFromList with CTRL+TAB as well.
Hope this will help.
Message was edited by: Louis Viljoen -
How to send Ctrl+Tab after ItemName in UI
Dear Developer,
I would like to know how can I send Ctrl+Tab key after ItemName column of system documents. I working on a alternative CopyTo function and I need to copy modified ItemName on document.
I tried as:
System.Windows.Forms.SendKeys.Send("^{TAB}")
but withou luck.
Anyone has any idea?
Thanks in advance.
NghiaHi,
Check the following threads they would be of help,
Changing an Items Description in Sales Document using UI
how to catch ctrl+tab key down
The specified item was not found.
Capture Combination Key Strokes (ctrl+tab)
Vasu Natari. -
How to catch IE7 tab change event in Java Applet?
My applet have some modeless dialogs, When I start my applet with modeless dialog in tab1, if I swith to tab2, the modeless dialog of tab1 remains open.
So I want to catch the tab change event, and set modeless dialog invisible when tab changes.
Who knows the solutions.... ThanksTo get to the IE7 browser, you'll have to go through JNI if you're using Java to get to a C level interface. You'll have to write the code to interface to it also. IE7 does not have a Java interface, inface, MS has a vested interest in not supporting a Java interface. You'll have to look up the IE7 developers docs to see the OLE interface you'll have to hit.
-
Hi all,
I have a JPanel with a JFormattedTextField inside of it. This field is suposed to receive just dates on it, so I have this method to auto complete the date when I type something.
private void setDateFieldListeners(final SimpleDateFormat dateFormat) {
addPropertyChangeListener(new PropertyChangeListener() {
public void propertyChange(PropertyChangeEvent e) {
if (e.getPropertyName() == "value") {
try {
Date date = dateFormat.parse(FormattedDateField.this.getText());
if (date != null && DateUtil.getYear(date) < 1000) {
date = DateUtil.addYears(date, 2000);
FormattedDateField.this.setValue(date);
catch (ParseException p) {
addKeyListener(new KeyListener() {
public void keyPressed(KeyEvent ev) {
public void keyTyped(KeyEvent ev) {
public void keyReleased(KeyEvent ev) {
int code = ev.getKeyCode();
if (code == KeyEvent.VK_BACK_SPACE ||
code == KeyEvent.VK_DELETE) {
return;
String date = FormattedDateField.this.getText();
String format = dateFormat.toPattern();
int firstBarIndex = format.indexOf("/");
int firstToSecondBar = -1;
if (firstBarIndex != -1) {
String auxString = format.substring(firstBarIndex + 1);
firstToSecondBar = auxString.indexOf("/");
if ((date.matches("^[0-9]{" + firstBarIndex + "}") &&
date.indexOf("/") == -1) ||
(firstToSecondBar!=-1 &&
date.matches("^[0-9]{1,}/[0-9]{" + firstToSecondBar + "}"))) {
FormattedDateField.this.setText(date + "/");
return;
}This JPanel is inserted on another panel, and I want the auto complete to happen only when I leave the field.
I've tried adding a KeyListener to it, so I could filter the auto-complete to happen only when VK_TAB is received, but it seems that java doesn't catches TABs unless I set FocusTraversalKeysEnabled to false (which I don't want to).
I also tried to catch it by overriding the method getFocusTraversalKeys like that:
public Set getFocusTraversalKeys (int id) {
if (id==KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS ||
id==KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS) {
//autocomplete
} return super.getFocusTraversalKeys(id);
}This also seems not to work, cuz any key I press, this method is called 3 times, receiving 0, 1 and 2 as id and KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS is 0.
Does anybody has another idea on catching the TAB?read:
http://java.sun.com/docs/books/tutorial/uiswing/misc/k
eybinding.html
note the 4 examples at the end which you can probably
cut and paste.I've tried the examples, but still not getting anything.
Here's the code I've used:
getInputMap().put(KeyStroke.getKeyStroke("TAB"), "Move Focus Forwards");
getActionMap().put("Move Focus Forwards", nextFocusAction);The code above is on the class constructor. nextFocusAction is:
private Action nextFocusAction = new AbstractAction("Move Focus Forwards") {
public void actionPerformed(ActionEvent evt) {
System.out.println("entered here");
((Component) evt.getSource()).transferFocus();
};The println never prints...
Am I missing something? -
Hi,
is it possible to disable the combination of CTRL+TAB on SBO 2005 ? A customer doesn't want because it's problem when they change description in delivery if this description is similar of a description that already exist.
Regards.Yes... it possible...
First of all the client formsettings can be set the item description to be visible but not active. This ios by far the most easy solution...
If that is not enough use this:
Just add something like this to the item-event
if (pVal.CharPressed == 9 && pVal.Modifiers == SAPbouiCOM.BoModifiersEnum.mt_CTRL) {
BubbleEvent = false;
Of cause you need to set up a few mor condition to the canelation of the event (Correct form, item and column)... 9 equals TAB in ascii
Alternative and perhaps better method
if (pVal.FormTypeEx == "133" && pVal.ItemUID == "38" && pVal.ColUID == "3" && pVal.EventType == SAPbouiCOM.BoEventTypes.et_KEY_DOWN && pVal.CharPressed != 9 && pVal.Modifiers != SAPbouiCOM.BoModifiersEnum.mt_CTRL)
BubbleEvent = false;
This work great except that i doesnt catch Windows copy-paste... A combination to be certain will be the best solution -
Ctrl+tab is not working in editing mode
I have JcheckBox and JTable in my JPanel. When user clicks or presses F2 to edit any cell value of the JTable a comboBox will appear with possible values. (This comboBox is coming from table CellEditor). When user presses ctrl+tab from the table focus should transfer to JComboBox all time. It is working only when the user presses ctrl+tab from the table cell which is not in editing mode. If the user presses ctrl+tab from the table cell which is in editing mode (i.e. focus is on the ComboBox of the cellEditor) it does not work. Please help me to find the solution.
I give a sample code here for your reference.
public class Frame1 extends JFrame {
public Frame1()
super();
this.setLayout( null );
this.setSize( new Dimension(400, 300) );
JTextField ch = new JTextField();
ch.setVisible(true);
ch.setBounds(10, 10, 10, 10);
this.add(ch, null);
DefaultTableModel tmodel = new DefaultTableModel(3, 1);
tmodel.setValueAt("0 0 1",0,0);
tmodel.setValueAt("1 0 1",1,0);
tmodel.setValueAt("2 0 1",2,0);
JTable custLayersTable = new JTable(tmodel);
custLayersTable.getColumnModel().getColumn(0).
setCellEditor(new ComboEditor());
custLayersTable.setBounds(new Rectangle(40, 40, 280, 145));
custLayersTable.setSurrendersFocusOnKeystroke(true);
this.add(custLayersTable, null);
public static void main(String[] args)
Frame1 a = new Frame1();
a.setVisible(true);
final class ComboEditor extends AbstractCellEditor
implements TableCellEditor
public Component getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column)
Vector<String> layerValSet = new Vector<String>();
for(int i=0; i<3; i++)
layerValSet.add(row+" "+column+" "+i);
mComboModel = new DefaultComboBoxModel(layerValSet);
mComboModel.setSelectedItem(value);
mEditorComp = new JComboBox(mComboModel);
return mEditorComp;
public Object getCellEditorValue()
return mEditorComp.getSelectedItem();
private DefaultComboBoxModel mComboModel;
private JComboBox mEditorComp;
}Thanks a lot for your reply.
Since the textField is in a different class i could not use the transferFocus API directly. I tried the following code in the keyreleased event of Combo Box but it was not working.
KeyboardFocusManager.getCurrentKeyboardFocusManager().focusNextComponent(
e.getComponent().getParent());
I also tried the following code in stopCellEditing and is not working.
KeyboardFocusManager.getCurrentKeyboardFocusManager().focusNextComponent();
Is there any other way to achieve this? -
I try to override the Ctrl-Tab key combination using the following:
final KeyStroke focusUnderneathTableKeyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_TAB, Event.CTRL_MASK);
wrapper.overrideShortcutKey(new FocusOnTableAction(false), focusUnderneathTableKeyStroke, "focusUnderneathTable");The method overrideShortcutKey() is:
public void overrideShortcutKey( AbstractAction action, KeyStroke keyStroke, String sName )
InputMap im = getComponent().getInputMap( JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT );
ActionMap am = getComponent().getActionMap();
im.put( keyStroke, sName );
am.put( sName, action );
}This does not seem to work. If, however, I replace the Tab key with 'Q', it works. I want this to transfer focus to a wrapper underneath a table.
Anybody any suggestions for this? And why does Ctrl+Tab not work whereas Ctrl+Q works?I'm assuming by normal tab, you want to insert a tab. So here's this:
import java.awt.*;
import java.util.HashSet;
import java.util.Set;
import javax.swing.*;
public class TextAreaTab {
public static void main( final String[] args ) {
Runnable doCreate = new Runnable() {
public void run() {
new TextAreaTab().createGUI();
SwingUtilities.invokeLater( doCreate );
private void createGUI() {
JButton button = new JButton( "Button" );
JTextArea textArea = new JTextArea();
textArea.setText( "TextArea" );
KeyStroke ctrlTab = KeyStroke.getKeyStroke("ctrl TAB" );
Set set = new HashSet( textArea.getFocusTraversalKeys( KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS) );
set.remove( ctrlTab );
textArea.setFocusTraversalKeys( KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS, set );
textArea.getInputMap().put( ctrlTab , "insert-tab" );
JFrame frame = new JFrame( "TextAreaTab" );
frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
frame.getContentPane().setLayout( new BorderLayout() );
frame.getContentPane().add( button, BorderLayout.SOUTH );
frame.getContentPane().add( textArea, BorderLayout.CENTER );
frame.setSize( new Dimension( 250, 100 ) );
frame.show();
} -
Vim Ctrl + Tab for Tabs navigation
:noremap <silent> <c-Tab> :tabn<CR>
noremap! <silent> <C-Tab> :tabn<CR>
This doesn't work for me - any idea why? Ctrl-tab just doesn't shift tabs... I've definitely not bound the combination elsewhere in my .vimrc either.
- KD
Last edited by KomodoDave (2007-05-02 02:38:33)mosor wrote:
Here are my tab related settings (that work):
set showtabline=2 " File tabs allways visible
:nmap <C-S-tab> :tabprevious<cr>
:nmap <C-tab> :tabnext<cr>
:nmap <C-t> :tabnew<cr>
:map <C-t> :tabnew<cr>
:map <C-S-tab> :tabprevious<cr>
:map <C-tab> :tabnext<cr>
:map <C-w> :tabclose<cr>
:imap <C-S-tab> <ESC>:tabprevious<cr>i
:imap <C-tab> <ESC>:tabnext<cr>i
:imap <C-t> <ESC>:tabnew<cr>
Thanks for posting, mosor! Sadly your command lines don't work for me either...
Here's my .vimrc, much of which was cloned from phrakture's :
"""""""""" general options """"""""""
set nocompatible " Use Vim settings, rather then Vi settings (much better!).
" This must be first, because it changes other options as a side effect.
"syntax enable " enable syntax highlighting and keep current colour settings
syntax on " enable syntax highlighting and override current colour settings
behave xterm " mouse and selection xterm behaviour
filetype plugin indent on " filetype dependent indenting and plugins
set autoindent " indents line relative to the line above it
set autowrite " automatically write contents of file where sensible
set backspace=indent,eol,start " allow backspacing over eevrything in insert mode
set backup backupdir=$HOME/.vim/backup " set backup directory
set cinoptions=g0,:0,l1,(0,t0 " C indentation options
set clipboard=unnamed " yank and paste in visual mode without prepending "*
set cmdheight=1 " cmdline height
set complete=.,t,i,b,w,k " keyword completion configuration
set encoding=utf-8 " encoding
set expandtab " insert spaces instead of tab character
set formatoptions+=l " add format option preventing lines longer than 'textwidth' being broken
set guioptions-=T " no toolbar
set hidden " don't have to save when switching buffers
set history=100 " cmdline history table size
"set ignorecase " search is case insensitive when search term is all lower case
set incsearch " live search while typing search expression
set laststatus=2 " always display the status line
set nohlsearch " no highlighting when performing search
set nowrap " don't wrap visible lines
set number " precede line with line number when printing
set pastetoggle=<F9> " toggle paste mode
set previewheight=5 " preview window size
"set ruler " show line and column in status line
set shell=/bin/sh " set the shell to be used
set shiftwidth=4 " number of spaces used for (auto)indent
set showcmd " show partial command in status line
set showmode " show whether in insert, visual mode etc
set showmatch " indicate matching parentheses, braces etc
set showtabline=2 " File tabs allways visible
set shortmess=a " abbreviate file messages
set smartcase
set smartindent
set softtabstop=4 " tab defaults to 4 spaces while performing editing operations
set splitbelow " split creates new window below current one
set statusline=%-3.3n\ %f\ %r%#Error#%m%#Statusline#\ (%l/%L,\ %c)\ %P%=%h%w\ %y\ [%{&encoding}:%{&fileformat}]\ \ "status line settings
set tabstop=4 " tab defaults to 4 spaces
set textwidth=80 " maximum column width of inserted text - longer lines are broken after whitespace
set ttyfast " for fast terminals - smoother (apparently)
set termencoding=utf-8
set whichwrap=h,l,<,>,[,] " allow line-wrapped navigation
set wildchar=<Tab> " type tab in cmdline to start wildcard expansion
set wildmenu " enhanced cmdline completion
set wildmode=longest:full,full " cmdline completion mode settings
set writebackup " make a file backup before overwriting it
" Convenient command to see the difference between the current buffer and the
" file it was loaded from, thus the changes you made.
command DiffOrig vert new | set bt=nofile | r # | 0d_ | diffthis
\ | wincmd p | diffthis
"""""""""" keyboard mappings """"""""""
" Dvorak caret navigation
:noremap t <Up>
:noremap h <Down>
:noremap d <Left>
:noremap n <Right>
:noremap k d
:noremap l n
:noremap j t
" Window split and navigation
:noremap <C-w><S-s> :vsplit<CR>
:noremap <C-w>t <C-w><Up>
:noremap <C-w>h <C-w><Down>
:noremap <C-w>d <C-w><Left>
:noremap <C-w>n <C-w><Right>
" Ctrl-s saves
:inoremap <C-s> <Esc>:w<CR>a
:nnoremap <C-s> :w<CR>
" Tab manipulation
":noremap <silent> <C-t> :tabnew<cr>
":noremap <silent> <C-x> :tabc<cr>
":noremap <silent> <C-tab> :tabn<cr>
":noremap <silent> <C-s-tab> :tabp<cr>
"noremap! <silent> <C-t> :tabnew<cr>
"noremap! <silent> <C-x> :tabc<cr>
"noremap! <silent> <C-tab> :tabn<cr>
"noremap! <silent> <C-s-tab> :tabp<cr>
:nmap <C-S-tab> :tabprevious<cr>
:nmap <C-tab> :tabnext<cr>
:nmap <C-t> :tabnew<cr>
:map <C-t> :tabnew<cr>
:map <C-S-tab> :tabprevious<cr>
:map <C-tab> :tabnext<cr>
:map <C-x> :tabclose<cr>
:imap <C-S-tab> <ESC>:tabprevious<cr>i
:imap <C-tab> <ESC>:tabnext<cr>i
:imap <C-t> <ESC>:tabnew<cr>
"Key bindings
noremap <silent> <F1> :Tlist<cr>
noremap <silent> <F2> :VSBufExplore<cr>
"noremap <silent> <F3> :Make<cr>
noremap <silent> <F3> <c-o>:Project<cr>
noremap <silent> <F6> :set spell!<cr>
noremap! <silent> <F1> <c-o>:Tlist<cr>
noremap! <silent> <F2> <c-o>:VSBufExplore<cr>
"noremap! <silent> <F3> <c-o>:Make<cr>
noremap! <silent> <F3> <c-o>:Project<cr>
noremap! <silent> <F6> <c-o>:set spell!<cr>
" I never use these anyway
noremap ( :bprev<cr>
noremap ) :bnext<cr>
":inoremap ^] ^[A
":inoremap ð ^N
" Don't use Ex mode, use Q for formatting
"map Q gq
"""""""""" autocommand stuff """"""""""
" Only do this part when compiled with support for autocommands.
if has("autocmd")
" Enable file type detection.
" Use the default filetype settings, so that mail gets 'tw' set to 72,
" 'cindent' is on in C files, etc.
" Also load indent files, to automatically do language-dependent indenting.
filetype plugin indent on
" Put these in an autocmd group, so that we can delete them easily.
augroup vimrcEx
au!
" For all text files set 'textwidth' to 78 characters.
autocmd FileType text setlocal textwidth=78
" When editing a file, always jump to the last known cursor position.
" Don't do it when the position is invalid or when inside an event handler
" (happens when dropping a file on gvim).
autocmd BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "normal! g`\"" |
\ endif
augroup END
else
set autoindent " always set autoindenting on
endif " has("autocmd")
" if autocmd is on
if has("autocmd")
" read Ex commands from file if syntax matches
au Syntax {cpp,c,idl} runtime syntax/doxygen.vim
au Syntax {cpp,c,lisp,scheme} runtime plugin/RainbowParenthesis.vim
au FileType qf if &buftype == "quickfix" |
\ setlocal statusline=%-3.3n\ %0*[quickfix]%=%2*\ %<%P |
\endif
au FileType mail setlocal spell
au FileType cvs setlocal spell
au FileType help setlocal statusline=%-3.3n\ [help]%=\ %<%P
" for all files enable cursorline upon entering a window, and disable when
" leaving
"au WinEnter * setlocal cursorline
"au WinLeave * setlocal nocursorline
au BufReadPost * if line("'\"")>0 && line("'\"")<=line("$")|exe "normal g`\""|endif
" syntax highlighting for html that permits embedded javascript
au BufRead *.html set filetype=htmlm4
" when a PKGBUILD is loaded into a buffer, trigger all sh filetype autocommands
" this occurs before modelines are read
au BufRead,BufNewFile PKGBUILD set ft=sh
" when a .as file is loaded into a buffer,, trigger all actionscript
" filetype autocommands, and use C indenting rules
" this occurs before modelines are read
au BufRead,BufNewFile *.as setlocal ft=actionscript cindent
" omni functionality
au FileType css setlocal ofu=csscomplete#CompleteCSS
au Filetype * if exists('&ofu') && &ofu == "" |
\ set ofu=syntaxcomplete#Complete |
\endif
endif
"""""""""" abbreviations and remaps """"""""""
":abbreviate #! #!/usr/bin/env python
"""""""""" other stuff """"""""""
" vim.org tip 867: get help on python in vim, eg :Pyhelp os
:command -nargs=+ Pyhelp :call ShowPydoc("<args>")
function ShowPydoc(module, ...)
let fPath = "/tmp/pyHelp_" . a:module . ".pydoc"
:execute ":!pydoc " . a:module . " > " . fPath
:execute ":sp ".fPath
endfunction
"bracket autocompletion
inoremap ( ()<ESC>i
inoremap [ []<ESC>i
inoremap { {<CR>}<ESC>O
autocmd Syntax html,vim inoremap < <lt>><ESC>i| inoremap > <c-r>=ClosePair('>')<CR>
inoremap ) <c-r>=ClosePair(')')<CR>
inoremap ] <c-r>=ClosePair(']')<CR>
inoremap } <c-r>=CloseBracket()<CR>
inoremap " <c-r>=QuoteDelim('"')<CR>
inoremap ' <c-r>=QuoteDelim("'")<CR>
function ClosePair(char)
if getline('.')[col('.') - 1] == a:char
return "\<Right>"
else
return a:char
endif
endf
function CloseBracket()
if match(getline(line('.') + 1), '\s*}') < 0
return "\<CR>}"
else
return "\<ESC>j0f}a"
endif
endf
function QuoteDelim(char)
let line = getline('.')
let col = col('.')
if line[col - 2] == "\\"
"Inserting a quoted quotation mark into the string
return a:char
elseif line[col - 1] == a:char
"Escaping out of the string
return "\<Right>"
else
"Starting a string
return a:char.a:char."\<ESC>i"
endif
endf
"folding options
if has("folding")
" enable folds
set foldenable
" {{{ markers indicate folds
set foldmethod=marker
" leave all/most folds open
set foldlevel=100
endif
" if using gvim
if has('gui_running')
" allow pasting into other applications after visual selection
set guioptions+=a
" use console dialogs instead of popups
set guioptions+=c
" don't add tab pages
set guioptions-=e
" don't include toolbar
set guioptions-=T
" set color scheme
colors zenburn
" if running under windows
if has('win32')
" set number of columns and lines
set columns=120
set lines=60
" select font
set guifont=Bitstream_Vera_Sans_Mono:h8:cANSI
else
" select font
set guifont=Bitstream\ Vera\ Sans\ Mono\ 8
endif
" if we're in a linux console
elseif (&term == 'screen.linux') || (&term =~ '^linux')
" use 8 bit colour
set t_Co=8
" set color scheme
colors desert
" if we're in xterm, urxvt or screen with 256 colours
elseif (&term == 'rxvt-unicode') || (&term =~ '^xterm') || (&term =~ '^screen-256')
" allow mouse in all editing modes
set mouse=a
" use xterm mouse behaviour
set ttymouse=xterm
" set encoding to uft-8
set termencoding=utf-8
" set color scheme
colors desert256-transparent
" if we're in a different terminal
else
" set color scheme
colors desert
endif
" if we're in screen and autocmd is enabled
if &term =~ "^screen" && has("autocmd")
" this fixes background artifacting when leaving vim inside screen
autocmd VimLeave * :set term=screen
endif
let mapleader = "`"
" cd includes current directory, as well as $HOME and projects folders
let &cdpath=','.expand("$HOME").','.expand("$HOME").'/projects'
" if vim version is >= 7
if v:version >= 700
" display cursor line
set cursorline
" Insert mode completion options
set completeopt=menu,menuone,longest,preview
" spellchecker language is US
set spelllang=en_us
" spelling suggestions operate on 'fast' mode with max 20 suggestions
set spellsuggest=fast,20
" use min 1 column for line number
set numberwidth=1
" imma commnt with missspellings, use me tu tesst
endif
"set dictionary=/usr/share/dict/words
" typing q: == :q
nmap q: :q<cr>
" typing :Q == :q
nmap :Q :q<cr>
" man-page autoreturn after view
nmap K K<cr>
iab NDB Author: N David Brown
"tags files search for a project
" :FindTags('~/projects/something')
"command! -nargs=1 -complete=dir FindTags :call ProjectTags(<args>)
"function! ProjectTags(projectbase)
"let tfiles = glob("$(find ".a:projectbase." -name tags -print)")
"let &tags = substitute(tfiles, "\n", ",", "g")
"endfunction
"command! -nargs=* Make :call SilentMake(<f-args>)
"function! SilentMake()
"let oldsp=&shellpipe
"setlocal shellpipe=>%s\ 2>&1
"exe 'silent make '.string(a:000)
"cwindow
"set shellpipe=&oldsp
"redraw! "this screws up the screen sometimes, fix that
"endfunction
"Project
let g:proj_flags = "ibmstg"
let g:proj_window_width = 35
"TODO get this working better
"TagsParser
"let g:TagsParserLastPositionJump = 1
"let g:TagsParserCurrentFileCWD = 1
let g:TagsParserWindowSize = 30
"let g:TagsParserAutoOpenClose = 1
"let g:TagsParserSingleClick = 1
"let g:TagsParserHighlightCurrentTag = 1
"let g:TagsParserSortType = "line"
"let g:TagsParserFileReadTag = 1
"let g:TagsParserFileReadDeleteTag = 1
"enable the Vim 7.0 options
if v:version >= 700
let g:TagsParserCtrlTabUsage = 'tabs'
"Configure the projects - These have been renamed because the projects I work
"on at work are not really what is important, but rather the way they are configured.
let g:TagsParserProjectConfig = {}
let g:TagsParserProjectConfig['/home/griff/devel/pacman-lib/'] = { 'tagsPath' : '/home/griff/devel/pacman-lib/lib/libalpm/,/home/griff/devel/pacman-lib/src/pacman/' }
endif
"TagList
"let Tlist_Display_Tag_Scope = 1 "ugh...
let g:Tlist_Display_Prototype = 1
let g:Tlist_Use_Right_Window = 1
let g:Tlist_Exit_OnlyWindow = 1
let g:Tlist_Enable_Fold_Column = 0
let g:Tlist_Sort_Type = "name"
let g:Tlist_Compact_Format = 0
let g:Tlist_File_Fold_Auto_Close = 0
let g:Tlist_WinWidth = 50
"VTreeExplorer
let g:treeExplVertical = 1
let g:treeExplWinSize = 35
let g:treeExplDirSort = 1
"NetRW
let g:netrw_keepdir = 1
let g:netrw_winsize = 40
let g:netrw_alto = 1
"BufExplorer
let g:bufExplorerOpenMode=1
let g:bufExplorerSortBy='mru'
let g:bufExplorerSplitType='v'
let g:bufExplorerSplitVertSize = 35
let g:bufExplorerShowDirectories=1
"Valgrind
let g:valgrind_arguments = "--leak-check=yes --num-callers=5000 --time-stamp=yes"
let g:valgrind_use_horizontal_window = 1
let g:valgrind_win_height = 7
"DoxygenToolkit
let g:DoxygenToolkit_authorName = "Aaron Griffin"
let g:DoxygenToolkit_briefTag_funcName = "yes"
"ShowMarks
let g:showmarks_enable = 0
let g:showmarks_ignore_type="hmpqr"
"Buftabs
let g:buftabs_only_basename = 1
"Lisp syntax
"let g:lisp_rainbow = 1
- KD
Last edited by KomodoDave (2007-05-04 13:34:16) -
Overriding Ctrl + Tab of JTabbedPane
Dear All ,
I have registered a keyboard action (ctrl+Tab key) to the
JTabbedPane instance in my program for " Shifting TabbedPane's Tabs " . But its not working. If i register with ( Ctrl + any other key ) it working fine.
MY CODE:
sm_tabpaneGUI.registerKeyboardAction(rightAction,KeyStroke.getKeyStrokejava.awt.event.KeyEvent.VK_TAB,java.awt.Event.CTRL_MASK),JComponent.WHEN_FOCUSED);
where rightAction is an ActionListener object reference which does the necessary functionality.
But Acc. Bug Id 4481587 they have given a workaround.
" Edit the awt.properties files which have the focus traversal keys defined. "
It is not working. So any other workaround would be appreciated."
Srinivasan Samivelu
Software Development Engineer
BarcoNet Private Limited.
Mailto:[email protected]
http://www.barconet.comtry dropping this into your app ..
DefaultFocusManager myManager = new DefaultFocusManager(){
public void processKeyEvent(Component focusedComponent, KeyEvent anEvent)
// Returning when you receive CTRL-TAB makes your components able to control that key
if (anEvent.getKeyCode() == KeyEvent.VK_TAB && (anEvent.getModifiers() & KeyEvent.CTRL_MASK) == KeyEvent.CTRL_MASK)
return;
super.processKeyEvent(focusedComponent,anEvent);
FocusManager.setCurrentManager(myManager); -
Catch the keydown event in matrix
Dear all,
In matrix I have 2 cols (Code, FullName). In Col with name 'Code' have formated search to search Employee Code. Now i want to catch the tab key when user leave the col 'Code' I will call a function to get Fullname to assign to col 'FullName'. I tried use formated search for this case but inactive so I must use this solution.
Please help me for this problem.
ThanksHi,
You can trap the Validate event on your form and then filter to check if the item UID is your matrix and the column is your code column. If the ItemChanged property is true then run your code to retrieve the name and populate the other column for the current row.
Kind Regards,
Owen -
Ctrl+Tab not working in Visual Studio 2013 in Remote Desktop
My PC is W81, and I'm RDing into a W7 machine running Visual Studio 2013 SP4.
When I press Ctrl+Tab (and hold), I very briefly see the usual editor window list come up, but it goes away and the editor does not switch.
If I hold Ctrl+Tab and let the repeat start, the same thing happens in rapid succession, but the current tab still never changes.
I have of course rebooted both client and server, and made sure my keyboard wasn't at fault and toggled all the keys. No dice.
Thanks.Sorry, but that doesn't get me the original behavior, where I can tab through the list or double-tab, triple-tap TAB to visit the last, second to last, or third to last file I visited (or I could use the visual navigator). I frequently use these commands,
and it's really slowing me down.
Can I please get an admission this is a bug and a commitment to fix it? -
Ctrl+Tab and Ctrl+F6 still not working in Excel 2013?
I am using Windows 7 64-bit. I just switched to Office Home & Business 2013 (32-bit), and I discovered that ctrl+tab behavior in Excel 2013 is incredibly broken.
If you are using any other programs concurrently with Excel, then it makes switching tasks through ctrl+tab impossible. Switching workbooks in this way has unpredictable behavior: often, Excel will switch to a workbook that is hidden behind other windows
(fails to foreground the window correctly). Even when it appears to be switching appropriately between windows, the order of switching is wrong: rather than cycling through all windows, it seems to switch between workbooks somewhat randomly.
See similar issues discussed here: https://social.technet.microsoft.com/Forums/office/en-US/f288d91d-835a-48c4-a39c-738ca05002c4/ctrltab-and-ctrlf6-not-working-properly-in-excel-2013?forum=officeitpro
and here: http://answers.microsoft.com/en-us/office/forum/office_2013_release-excel/cycling-between-open-windows-using-ctrlf6-or/7314b632-7f48-44f1-8e96-7d7000ac86d8
There does not appear to be any solution to this issue so far. I have attempted to repair my installation of Microsoft Office, but it did not correct the problem.Hi Dlup12345,
Based on my testes with local environment (Windows 8.1 and Excel 2013:15.0.4675.1000), the two Keyboard shortcuts worked as expected. In my view, this issue might be occur with Keyboard shortcuts, because you said the issue occurred intermittently. If we
only open multiple Excel files without other program, the shortcuts should worked fine. Please check if other program affected Excel shortcuts.
If you have any update, please feel free let us know.
Regards,
George Zhao
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs. -
I deleted the sign-in tab in Ctrl-Tab 0.21.1. How do I get it back?
I installed Ctrl-tab 0.21.1. Initially there were several tabs prefilled, one of which, was for sign-in. I made a mistake and deleted it and now I want to recover it. How do I do this? Thank you. Marsh
I tried installing several times and it did not work. Each time I downloaded it, and restarted the computer it went back to the web site you gave to down load. Each time I checked the Ctrl-Tab and the sign-in was not listed. Now I have done some further checking in the profile and it shows a blue dot in default, but none in on or off. I don't know if that makes a difference. In fact, when I down loaded it there was no difference between what I had and after the down load. In other words, what tabs I had when I first installed the Ctrl-tab did not appear, only the ones that I added, minus the sign-in tab, which I inadvertently deleted. I did remove Ctrl-tab before doing all this. Another thing I noticed is after restarting the computer it goes back to down load, but I do not get any indication that it is being installed. I hope this helps. Bruson
-
CTRL-Tab isn't working anymore in Indesign CC nor in CC (2014)
Hi, I use to switch between open documents using the CTRL-TAB and CTRL-SHIFT-TAB in Indesign.
Since we have upgraded to CC and now CC (2014) it seems that Indesign refuses to use these shortcuts.
All tough it's possible to assign them, they just do nothing.
I can assign also other shortcuts for this function and they do work, except the one I want.
While in Photoshop this works fine, in Illustrator it is not possible to assign such shortcut (that is another story).
What have I done? Removed prefs and even uninstalled and reinstalled all CC apps…
Any suggestions?@Peter – yes.
It would be slightly different with a German keyboard layout on Mac OSX.
There it is:
cmd + <
and:
cmd + shift + <
Where the < key is right to the shift key on my MacBook Pro keyboard.
Or directly above the ctrl key, if that helps.
Uwe
Maybe you are looking for
-
Mail hang with multiple pop accounts and invalid new mail counter
All More than a year ago, I migrated all email accounts from Outlook to Apple Mail using O2M application. I have 2 pop accounts and gmail account. Everything worked fine for a few month but then Mail started to hang during message receiving. It did s
-
Error when attaching workflows to Sharepoint 2010 lists
Hi, I am getting an error when trying to attach an approval workflow to any SharePoint 2010 list on my development server. From the below error in the log I remember that I got this same error in Sharepoint 2007 MOSS. It occurs because I have undersc
-
SQL Developer 1.5 migration issue with MS use of reserved words
In version 1.2 the was and advanced option that allowed the use of reserved words for column names, I can not find that option in 1.5. What happened to this option? I can not find it and I need to port those applications with out changing the column
-
Hi Experts, The problem is R(14) is sum of R(1) to R(13) but R(17) is R(1):R(13)-R(16) but it giving me as error when i use this in total can we have any other ways of doing this.
-
Quick method - Plant and due date to outstanding PO / SA DS items
Due to volumes, performance is an issue for a Z report. Ideas on quickest method to get to outstanding PO items and SA Delivery Schedule items due on given dates for a single Plant. There are other search criteria but I don't believe these will be