cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Annoying pop-up menu

Highlighted
Newbie

Annoying pop-up menu

Hello,

Adept 7.0 seems to have a pop-up menu that lists all of the possible element
permutations that can be inserted at the current location if you press the
return key.

I don't want this - it is slow and cumbersome.

I have remaped the return key when the cursor is inside some of the elements
in our DTD. The remap does specialized insertions (mostly for listitems,
which are a pain). The pop-up menu overides this behavior.

How can I turn this "feature" off?

Steve Cogorno Information Products Group
cogorno@sybase.com Sybase, Inc.
Tags (2)
1 REPLY 1

Annoying pop-up menu

eduardo.gutentag said:
> Your alternatives to accomplish what you want are
>
> a) make a copy of _return::next_logical_return(), modify it for your purposes
> and make sure that its location is earlier in the loadpath than the original, or
>
> b) unmap Return and then map it to what you want it to be.

I've already done b. It didn't work. Here's the code from the doctype
pubrc:

function return_key() {
# Return inside LISTITEM,PARA adds LISTITEM
if ( inside_tag( "listitem" ) && oid_name( oid_caret() ) == "para" && \
oid_name( oid_parent( oid_caret() ) ) == "listitem" ) {
goto_oid( oid_parent( oid_caret() ), -1 )
forward_char( 1 )
insert_tag( "listitem" )
}

# Return inside LIST adds LISTITEM
if ( inside_tag( "list" ) && oid_name( oid_caret() ) == "list") {
insert_tag( "listitem" )
}

# Return inside STEP adds STEP
if ( inside_tag( "step" ) && oid_name( oid_caret() ) == "para" ) {
goto_oid( oid_parent( oid_caret() ), -1 )
forward_char( 1 )
insert_tag( "step" )
}

# Return inside TITLE jumps out
else if (oid_name(oid_caret()) == "title") {
goto_oid(oid_caret(), -1)
forward_char( 1 )
}
# Return inside PROCEDURE adds new step
else if (oid_name(oid_caret()) == "procedure") {
insert_tag( "step" )
}

else {
# this is the default mapping for the return key
newline
}
}

if (!keymap_exists(sybase)){
copy_keymap edit sybase

map @sybase return return_key()
map @sybase shift-return ie hr
}

set keymap=sybase

What am I missing?

Steve Cogorno Information Products Group
cogorno@sybase.com Sybase, Inc.
Announcements